1
0
Fork 0
mirror of https://github.com/syncthing/syncthing-android.git synced 2024-12-23 03:11:30 +00:00

Fix DevicesAdapter NullPtr exception (#1075)

This commit is contained in:
Catfriend1 2018-04-30 08:01:46 +02:00 committed by Audrius Butkevicius
parent 5d5bbd4653
commit 22e03d65da

View file

@ -47,7 +47,7 @@ public class DevicesAdapter extends ArrayAdapter<Device> {
Resources r = getContext().getResources();
Connections.Connection conn = null;
if (mConnections != null || mConnections.connections.containsKey(deviceId)) {
if (mConnections != null && mConnections.connections.containsKey(deviceId)) {
conn = mConnections.connections.get(deviceId);
}