summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--services/Weather.qml2
1 files changed, 1 insertions, 1 deletions
diff --git a/services/Weather.qml b/services/Weather.qml
index 29858eb..998fdb8 100644
--- a/services/Weather.qml
+++ b/services/Weather.qml
@@ -29,7 +29,7 @@ Singleton {
command: ["curl", "ipinfo.io"]
stdout: StdioCollector {
- onStreamFinished: root.loc = JSON.parse(text).loc
+ onStreamFinished: root.loc = JSON.parse(text).loc ?? ""
}
}