mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge
synced 2024-12-26 02:25:50 +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;
|
||||
continue;
|
||||
}
|
||||
if (labelsMap.get(enabledScreen) == null) {
|
||||
continue;
|
||||
}
|
||||
|
||||
final XiaomiProto.DisplayItem.Builder displayItem = XiaomiProto.DisplayItem.newBuilder()
|
||||
.setCode(enabledScreen)
|
||||
|
Loading…
Reference in New Issue
Block a user