1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-12-26 18:45:49 +01:00

Zepp OS: Fix NPE when no weather data is available

This commit is contained in:
José Rebelo 2022-12-02 21:13:25 +00:00
parent 87082557a6
commit be900f13d8

View File

@ -59,7 +59,7 @@ public class Huami2021Weather {
if (weatherSpec == null) { if (weatherSpec == null) {
LOG.error("No weather in weather instance"); LOG.error("No weather in weather instance");
return null; return new Huami2021Weather.ErrorResponse(404, -2001, "Not found");
} }
switch (path) { switch (path) {