[shelly] Fix `NullPointerException` (#18103)
Signed-off-by: Thomas Leber <thomas@tl-photography.at>pull/18029/merge
parent
22d907ffb2
commit
d8618a761a
|
@ -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)) {
|
||||
|
|
Loading…
Reference in New Issue