From a00ccead8f2b21f6ff3d4329a810d0a987b1e3c0 Mon Sep 17 00:00:00 2001 From: Ingo Schommer Date: Thu, 3 Mar 2011 08:37:05 +1300 Subject: [PATCH] BUGFIX Checking for node existence in get_text() for jquery.jstree.js --- thirdparty/jstree/jquery.jstree.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/thirdparty/jstree/jquery.jstree.js b/thirdparty/jstree/jquery.jstree.js index f920bd6aa..cbc614377 100644 --- a/thirdparty/jstree/jquery.jstree.js +++ b/thirdparty/jstree/jquery.jstree.js @@ -806,7 +806,7 @@ } else { obj = obj.contents().filter(function() { return this.nodeType == 3; })[0]; - return obj.nodeValue; + return obj ? obj.nodeValue : ''; } }, set_text : function (obj, val) {