From c950e68a27fffb26292cc81a8edb7b03508e07ce Mon Sep 17 00:00:00 2001 From: Paulo Gustavo Veiga Date: Fri, 7 Sep 2012 20:15:42 -0300 Subject: [PATCH] - Bug Cannot call method 'trim' of undefined, line:2255 fixed. --- mindplot/src/main/javascript/Topic.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mindplot/src/main/javascript/Topic.js b/mindplot/src/main/javascript/Topic.js index 811b16ee..17d4c29e 100644 --- a/mindplot/src/main/javascript/Topic.js +++ b/mindplot/src/main/javascript/Topic.js @@ -468,7 +468,7 @@ mindplot.Topic = new Class({ setText:function (text) { // Avoid empty nodes ... - if (text.trim().length == 0) { + if (!text || text.trim().length == 0) { text = null; }