summaryrefslogtreecommitdiff
path: root/src/node/handler/PadMessageHandler.js
diff options
context:
space:
mode:
authorGared <mu.stefan@googlemail.com>2014-12-27 14:26:05 +0100
committerGared <mu.stefan@googlemail.com>2014-12-27 14:26:05 +0100
commit40c7ee9df911c98474b80a3030bc50bceba95d2c (patch)
tree55842fd7530767fd6e2620d1f965760a26fa90ef /src/node/handler/PadMessageHandler.js
parent444bbf4cbc503148ebc4a80152093adb3c55c7a8 (diff)
downloadetherpad-lite-40c7ee9df911c98474b80a3030bc50bceba95d2c.zip
Prevent server crash if author is not set
Diffstat (limited to 'src/node/handler/PadMessageHandler.js')
-rw-r--r--src/node/handler/PadMessageHandler.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/node/handler/PadMessageHandler.js b/src/node/handler/PadMessageHandler.js
index bc8f5d62..7cdefc65 100644
--- a/src/node/handler/PadMessageHandler.js
+++ b/src/node/handler/PadMessageHandler.js
@@ -1020,7 +1020,7 @@ function handleClientReady(client, message)
{
authorManager.getAuthor(authorId, function(err, author)
{
- if(ERR(err, callback)) return;
+ if(ERR(err, callback) || !author) return;
historicalAuthorData[authorId] = {name: author.name, colorId: author.colorId}; // Filter author attribs (e.g. don't send author's pads to all clients)
callback();
});