getDeviceSupport() add check for deviceSupport being null

This commit is contained in:
NekoBox
2022-08-22 10:35:06 +02:00
committed by Gitea
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();
}
}