From c9494a312d9ea75ee78fe3ae34800b666fff073c Mon Sep 17 00:00:00 2001 From: Mike Primm Date: Mon, 15 Aug 2011 21:01:59 +0800 Subject: [PATCH] Fix exception if initial update has stale logoff for player+chat --- web/js/chatballoon.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/web/js/chatballoon.js b/web/js/chatballoon.js index 0aec1ba9..e47bd67d 100644 --- a/web/js/chatballoon.js +++ b/web/js/chatballoon.js @@ -18,6 +18,8 @@ componentconstructors['chatballoon'] = function(dynmap, configuration) { return; } var player = dynmap.players[message.name]; + if (!player) + return; if (dynmap.world !== player.location.world) { return; }