From e24ed46a084972c2d33223be84a3bc8fef25e735 Mon Sep 17 00:00:00 2001 From: Marcel Klehr Date: Sat, 10 Nov 2012 10:47:12 +0100 Subject: [PATCH] PadMessageHandler: Make sure sessioninfos[session] still exists before pushing data to user. --- src/node/handler/PadMessageHandler.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/node/handler/PadMessageHandler.js b/src/node/handler/PadMessageHandler.js index a30e4e81..a0bccfc5 100644 --- a/src/node/handler/PadMessageHandler.js +++ b/src/node/handler/PadMessageHandler.js @@ -619,7 +619,7 @@ exports.updatePadClients = function(pad, callback) //https://github.com/caolan/async#whilst //send them all new changesets async.whilst( - function (){ return sessioninfos[session].rev < pad.getHeadRevisionNumber()}, + function (){ return sessioninfos[session] && sessioninfos[session].rev < pad.getHeadRevisionNumber()}, function(callback) { var author, revChangeset, currentTime;