1
0
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:
Andreas Shimokawa 2023-12-05 18:38:27 +01:00 committed by José Rebelo
parent 9ddbcc0c8a
commit 776346d311

View File

@ -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)