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 and jlaur committed Jan 13, 2025
1 parent 1ecee28 commit 82d5194
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -414,7 +414,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 82d5194

Please sign in to comment.