mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge
synced 2024-11-27 12:26:48 +01:00
getDeviceSupport() add check for deviceSupport being null
This commit is contained in:
parent
43d637bd1f
commit
72e2475389
@ -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();
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user