Merge pull request #2400 from Gared/fix/author-not-set
Prevent server crash if author is not setpull/2406/head
commit
a645aeef5c
|
@ -1020,7 +1020,7 @@ function handleClientReady(client, message)
|
||||||
{
|
{
|
||||||
authorManager.getAuthor(authorId, function(err, author)
|
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)
|
historicalAuthorData[authorId] = {name: author.name, colorId: author.colorId}; // Filter author attribs (e.g. don't send author's pads to all clients)
|
||||||
callback();
|
callback();
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue