1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-06-08 06:08:04 +02: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();
}
}