[shelly] Fix `NullPointerException` (#18103)

Signed-off-by: Thomas Leber <thomas@tl-photography.at>
pull/18029/merge
tl-photography 2025-01-13 21:54:21 +01:00 committed by GitHub
parent 22d907ffb2
commit d8618a761a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -413,7 +413,7 @@ public class ShellyManagerPage {
fw = fromJson(gson, entry, FwRepoEntry.class);
// Special case: RGW2 has a split firmware - xxx-white.zip vs. xxx-color.zip
if (!mode.isEmpty() && deviceType.equalsIgnoreCase(SHELLYDT_RGBW2)) {
if (SHELLYDT_RGBW2.equalsIgnoreCase(deviceType) && !mode.isEmpty()) {
// check for spilt firmware
String url = substringBefore(fw.url, ".zip") + "-" + mode + ".zip";
if (testUrl(url)) {