mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2025-01-12 15:33:20 -05: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)
|
function broadcastSessionsToRegisteredApps(x)
|
||||||
{
|
{
|
||||||
var p = {}, i;
|
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];
|
p[i] = sendAgentMessage.messages[i];
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user