1
0
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:
NekoBox 2022-08-21 22:53:49 +03:00 committed by Gitea
parent 43d637bd1f
commit 72e2475389

View File

@ -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();
}
}