mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge.git
synced 2026-07-31 07:44:24 +02:00
getDeviceSupport() add check for deviceSupport being null
This commit is contained in:
+3
@@ -935,6 +935,9 @@ public class DeviceCommunicationService extends Service implements SharedPrefere
|
||||
}
|
||||
for(DeviceStruct struct : deviceStructs){
|
||||
if(struct.getDevice().equals(device)){
|
||||
if(struct.getDeviceSupport() == null)
|
||||
throw new DeviceNotFoundException(device);
|
||||
|
||||
return struct.getDeviceSupport();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user