mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge.git
synced 2025-06-05 21:49:48 +02:00
Fix a crash (I have that with a device I am working on)
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user