diff --git a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/impl/GBDeviceCandidate.java b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/impl/GBDeviceCandidate.java index e9a044364..ad59c48bd 100644 --- a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/impl/GBDeviceCandidate.java +++ b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/impl/GBDeviceCandidate.java @@ -162,7 +162,7 @@ public class GBDeviceCandidate implements Parcelable, Cloneable { public boolean supportsService(UUID aService) { ParcelUuid[] uuids = getServiceUuids(); - if (uuids.length == 0) { + if (uuids == null || uuids.length == 0) { LOG.warn("no cached services available for " + this); return false; }