Fix for #3748
Ylian Saint-Hilaire committed
Mar 9, 2022 at 08:49 UTC
9f7d2d63f8c3f980eae85656152e3d8c8fc3e4da
1 file changed
+1
-1
meshagent.js
+1
-1
@@ -2095,7 +2095,7 @@ module.exports.CreateMeshAgent = function (parent, db, ws, req, args, domain) {
2095
if ((agentExeInfo.hash == agentHash) || (agentHash == '\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0')) return 0;
2096
// If this is a macOS x86 or ARM agent type and it matched the universal binary, no update required.
2097
if ((agentExeInfo.id == 16) || (agentExeInfo.id == 29)) {
2098
- if (domain.meshAgentBinaries[10005]) {
2098
+ if (domain.meshAgentBinaries && domain.meshAgentBinaries[10005]) {
2099
if (domain.meshAgentBinaries[10005].hash == agentHash) return 0;
2100
} else {
2101
if (parent.parent.meshAgentBinaries[10005].hash == agentHash) return 0;