mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge
synced 2024-12-25 18:15:49 +01:00
Zepp OS: Fix NPE when no weather data is available
This commit is contained in:
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) {
|
||||
|
Loading…
Reference in New Issue
Block a user