mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2024-11-11 02:16:35 +03:00
Added null check to for loop
This commit is contained in:
parent
d7dee2c869
commit
13f9f27ff1
@ -283,7 +283,7 @@ obj.DAIPC.on('connection', function (c) {
|
||||
function broadcastSessionsToRegisteredApps(x)
|
||||
{
|
||||
var p = {}, i;
|
||||
for (i = 0; i < sendAgentMessage.messages.length; ++i)
|
||||
for (i = 0; sendAgentMessage.messages != null && i < sendAgentMessage.messages.length; ++i)
|
||||
{
|
||||
p[i] = sendAgentMessage.messages[i];
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user