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