mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge.git
synced 2026-07-31 07:44:24 +02:00
Zepp OS: Fix NPE when no weather data is available
This commit is contained in:
+1
-1
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user