Skip to content

Commit

Permalink
[shelly] Fix NullPointerException (#18103)
Browse files Browse the repository at this point in the history
Signed-off-by: Thomas Leber <[email protected]>
  • Loading branch information
tl-photography authored Jan 13, 2025
1 parent 22d907f commit d8618a7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -413,7 +413,7 @@ protected FwRepoEntry getFirmwareRepoEntry(String deviceType, String mode) throw
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)) {
Expand Down

0 comments on commit d8618a7

Please sign in to comment.