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:
parent
87082557a6
commit
be900f13d8
@ -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) {
|
||||||
|
Loading…
Reference in New Issue
Block a user