Skip to content

Commit

Permalink
[Shelly] apply further hardening against NPE
Browse files Browse the repository at this point in the history
Co-authored-by: Jacob Laursen <[email protected]>
Signed-off-by: tl-photography <[email protected]>
  • Loading branch information
tl-photography and jlaur authored Jan 13, 2025
1 parent a03b84a commit ff6f39b
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 (deviceType.equalsIgnoreCase(SHELLYDT_RGBW2) && !mode.isEmpty()) {
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 ff6f39b

Please sign in to comment.