mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge
synced 2024-11-03 08:52:58 +01:00
Fix a crash (I have that with a device I am working on)
This commit is contained in:
parent
77450efb99
commit
dbb47351dd
@ -162,7 +162,7 @@ public class GBDeviceCandidate implements Parcelable, Cloneable {
|
|||||||
|
|
||||||
public boolean supportsService(UUID aService) {
|
public boolean supportsService(UUID aService) {
|
||||||
ParcelUuid[] uuids = getServiceUuids();
|
ParcelUuid[] uuids = getServiceUuids();
|
||||||
if (uuids.length == 0) {
|
if (uuids == null || uuids.length == 0) {
|
||||||
LOG.warn("no cached services available for " + this);
|
LOG.warn("no cached services available for " + this);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user