mirror of
https://github.com/syncthing/syncthing-android.git
synced 2024-12-23 11:21:29 +00:00
Fix DevicesAdapter NullPtr exception (#1075)
This commit is contained in:
parent
5d5bbd4653
commit
22e03d65da
1 changed files with 1 additions and 1 deletions
|
@ -47,7 +47,7 @@ public class DevicesAdapter extends ArrayAdapter<Device> {
|
||||||
Resources r = getContext().getResources();
|
Resources r = getContext().getResources();
|
||||||
|
|
||||||
Connections.Connection conn = null;
|
Connections.Connection conn = null;
|
||||||
if (mConnections != null || mConnections.connections.containsKey(deviceId)) {
|
if (mConnections != null && mConnections.connections.containsKey(deviceId)) {
|
||||||
conn = mConnections.connections.get(deviceId);
|
conn = mConnections.connections.get(deviceId);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue