mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge
synced 2025-01-14 11:47:32 +01:00
Xiaomi: guard against null pointer crash
This commit is contained in:
parent
9ddbcc0c8a
commit
776346d311
@ -357,6 +357,9 @@ public class XiaomiSystemService extends AbstractXiaomiService implements Xiaomi
|
|||||||
inMoreSection = true;
|
inMoreSection = true;
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
if (labelsMap.get(enabledScreen) == null) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
final XiaomiProto.DisplayItem.Builder displayItem = XiaomiProto.DisplayItem.newBuilder()
|
final XiaomiProto.DisplayItem.Builder displayItem = XiaomiProto.DisplayItem.newBuilder()
|
||||||
.setCode(enabledScreen)
|
.setCode(enabledScreen)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user