Found a path to a crash condition

Preventing a de-reference of null when the HA server is unreachable.
This commit is contained in:
Philip Abbey
2025-08-10 20:50:12 +01:00
parent 57128bf7a4
commit 166b5f4ec3
2 changed files with 74 additions and 70 deletions

View File

@ -4,6 +4,8 @@
"Venu"
],
"files.exclude": {
"resources-*": true
"resources-*": true,
"bin": true,
"export": true
}
}

View File

@ -430,6 +430,7 @@ class HomeAssistantApp extends Application.AppBase {
//! Construct the GET request to update all menu items.
//
function updateMenuItems() as Void {
if (mUpdating) {
var phoneConnected = System.getDeviceSettings().phoneConnected;
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.
//!