m.message might be null if JSON encoding is broken
authorMichael M Slusarz <slusarz@curecanti.org>
Fri, 17 Dec 2010 05:30:07 +0000 (22:30 -0700)
committerMichael M Slusarz <slusarz@curecanti.org>
Fri, 17 Dec 2010 09:17:38 +0000 (02:17 -0700)
imp/js/dimpcore.js

index 9b63928..2f6cdf7 100644 (file)
@@ -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);