Skip to content

Commit d8618a7

Browse files
[shelly] Fix NullPointerException (openhab#18103)
Signed-off-by: Thomas Leber <[email protected]>
1 parent 22d907f commit d8618a7

File tree

1 file changed

+1
-1
lines changed
  • bundles/org.openhab.binding.shelly/src/main/java/org/openhab/binding/shelly/internal/manager

1 file changed

+1
-1
lines changed

bundles/org.openhab.binding.shelly/src/main/java/org/openhab/binding/shelly/internal/manager/ShellyManagerPage.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -413,7 +413,7 @@ protected FwRepoEntry getFirmwareRepoEntry(String deviceType, String mode) throw
413413
fw = fromJson(gson, entry, FwRepoEntry.class);
414414

415415
// Special case: RGW2 has a split firmware - xxx-white.zip vs. xxx-color.zip
416-
if (!mode.isEmpty() && deviceType.equalsIgnoreCase(SHELLYDT_RGBW2)) {
416+
if (SHELLYDT_RGBW2.equalsIgnoreCase(deviceType) && !mode.isEmpty()) {
417417
// check for spilt firmware
418418
String url = substringBefore(fw.url, ".zip") + "-" + mode + ".zip";
419419
if (testUrl(url)) {

0 commit comments

Comments
 (0)