From ab7be919a027bc523f9c7dc5a16816501933c435 Mon Sep 17 00:00:00 2001 From: si458 Date: Sat, 7 Dec 2024 14:41:19 +0000 Subject: [PATCH] fix meshcmd amtinfo UNCAUGHT EXCEPTION #4135 Signed-off-by: si458 --- agents/meshcmd.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/agents/meshcmd.js b/agents/meshcmd.js index ac782e8c..1142c31a 100644 --- a/agents/meshcmd.js +++ b/agents/meshcmd.js @@ -588,7 +588,7 @@ function run(argv) { } amtMei.getProvisioningState(function (result) { if (result) { mestate.ProvisioningState = result; } }); amtMei.getProvisioningMode(function (result) { if (result) { mestate.ProvisioningMode = result; } }); - amtMei.getEHBCState(function (result) { mestate.ehbc = ((result === true) || (typeof result == 'object') && (result.EHBC === true)); }); + amtMei.getEHBCState(function (result) { if (result) { mestate.ehbc = ((result === true) || (typeof result == 'object') && (result.EHBC === true)); } }); amtMei.getControlMode(function (result) { if (result) { mestate.controlmode = result; } }); amtMei.getMACAddresses(function (result) { if (result) { mestate.mac = result; } }); amtMei.getLanInterfaceSettings(0, function (result) { if (result) { mestate.net0 = result; } });