From 874bb1a14ebe9e10e7af6e9ca801bc397392f225 Mon Sep 17 00:00:00 2001 From: Damien 'Psolyca' Gaignon Date: Tue, 13 Feb 2024 00:18:48 +0100 Subject: [PATCH] [Huawei] Fix test --- .../gadgetbridge/devices/huawei/packets/DeviceConfig.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/devices/huawei/packets/DeviceConfig.java b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/devices/huawei/packets/DeviceConfig.java index 98ce781eb..f2e6fca86 100644 --- a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/devices/huawei/packets/DeviceConfig.java +++ b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/devices/huawei/packets/DeviceConfig.java @@ -332,6 +332,8 @@ public class DeviceConfig { } else throw new SupportedCommandsListException("Unknown tag encountered"); } + if (this.commandsLists.isEmpty()) + throw new SupportedCommandsListException("CommandLists is empty"); } }