fix meshcmd amtinfo UNCAUGHT EXCEPTION #4135

Signed-off-by: si458 <simonsmith5521@gmail.com>

si458 committed Dec 7, 2024 at 14:41 UTC ab7be919a027bc523f9c7dc5a16816501933c435
1 file changed +1 -1
agents/meshcmd.js
+1 -1
@@ -588,7 +588,7 @@ function run(argv) {
588 }
589 amtMei.getProvisioningState(function (result) { if (result) { mestate.ProvisioningState = result; } });
590 amtMei.getProvisioningMode(function (result) { if (result) { mestate.ProvisioningMode = result; } });
591 - amtMei.getEHBCState(function (result) { mestate.ehbc = ((result === true) || (typeof result == 'object') && (result.EHBC === true)); });
591 + amtMei.getEHBCState(function (result) { if (result) { mestate.ehbc = ((result === true) || (typeof result == 'object') && (result.EHBC === true)); } });
592 amtMei.getControlMode(function (result) { if (result) { mestate.controlmode = result; } });
593 amtMei.getMACAddresses(function (result) { if (result) { mestate.mac = result; } });
594 amtMei.getLanInterfaceSettings(0, function (result) { if (result) { mestate.net0 = result; } });