mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge
synced 2024-12-28 19:45:50 +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