mirror of
https://github.com/openhab/openhab-addons.git
synced 2025-02-06 04:14:03 +01:00
[shelly] Fix NullPointerException
(#18103)
Signed-off-by: Thomas Leber <thomas@tl-photography.at>
This commit is contained in:
parent
22d907ffb2
commit
d8618a761a
@ -413,7 +413,7 @@ public class ShellyManagerPage {
|
|||||||
fw = fromJson(gson, entry, FwRepoEntry.class);
|
fw = fromJson(gson, entry, FwRepoEntry.class);
|
||||||
|
|
||||||
// Special case: RGW2 has a split firmware - xxx-white.zip vs. xxx-color.zip
|
// 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
|
// check for spilt firmware
|
||||||
String url = substringBefore(fw.url, ".zip") + "-" + mode + ".zip";
|
String url = substringBefore(fw.url, ".zip") + "-" + mode + ".zip";
|
||||||
if (testUrl(url)) {
|
if (testUrl(url)) {
|
||||||
|
Loading…
Reference in New Issue
Block a user