From 41b934b1ed6c8aa82448bf2cde1c89ec2926d467 Mon Sep 17 00:00:00 2001 From: Michael M Slusarz Date: Thu, 16 Dec 2010 22:30:07 -0700 Subject: [PATCH] m.message might be null if JSON encoding is broken --- imp/js/dimpcore.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/imp/js/dimpcore.js b/imp/js/dimpcore.js index 9b6392814..2f6cdf773 100644 --- a/imp/js/dimpcore.js +++ b/imp/js/dimpcore.js @@ -222,6 +222,10 @@ var DimpCore = { } msgs.find(function(m) { + if (!Object.isString(m.message)) { + return; + } + switch (m.type) { case 'horde.ajaxtimeout': this.logout(m.message); -- 2.11.0