mirror of
https://github.com/house-of-abbey/GarminHomeAssistant.git
synced 2025-08-16 08:38:37 +00:00
Found a path to a crash condition
Preventing a de-reference of null when the HA server is unreachable.
This commit is contained in:
4
.vscode/settings.json
vendored
4
.vscode/settings.json
vendored
@ -4,6 +4,8 @@
|
|||||||
"Venu"
|
"Venu"
|
||||||
],
|
],
|
||||||
"files.exclude": {
|
"files.exclude": {
|
||||||
"resources-*": true
|
"resources-*": true,
|
||||||
|
"bin": true,
|
||||||
|
"export": true
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -430,6 +430,7 @@ class HomeAssistantApp extends Application.AppBase {
|
|||||||
//! Construct the GET request to update all menu items.
|
//! Construct the GET request to update all menu items.
|
||||||
//
|
//
|
||||||
function updateMenuItems() as Void {
|
function updateMenuItems() as Void {
|
||||||
|
if (mUpdating) {
|
||||||
var phoneConnected = System.getDeviceSettings().phoneConnected;
|
var phoneConnected = System.getDeviceSettings().phoneConnected;
|
||||||
var connectionAvailable = System.getDeviceSettings().connectionAvailable;
|
var connectionAvailable = System.getDeviceSettings().connectionAvailable;
|
||||||
|
|
||||||
@ -511,6 +512,7 @@ class HomeAssistantApp extends Application.AppBase {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
//! Callback function after completing the GET request to fetch the API status.
|
//! Callback function after completing the GET request to fetch the API status.
|
||||||
//!
|
//!
|
||||||
|
Reference in New Issue
Block a user