From b1cc0a89122556b77a4bfa51628aeb6cf47442cf Mon Sep 17 00:00:00 2001 From: Manuel Raynaud Date: Wed, 11 Sep 2013 09:55:09 +0200 Subject: [PATCH] in variableListWidget, check if v variable is not null --- src/DebugBar/Resources/widgets.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/DebugBar/Resources/widgets.js b/src/DebugBar/Resources/widgets.js index 5585f8c..41de6ba 100644 --- a/src/DebugBar/Resources/widgets.js +++ b/src/DebugBar/Resources/widgets.js @@ -153,7 +153,7 @@ if (typeof(PhpDebugBar) == 'undefined') { dt.text(key); var v = value; - if (v.length > 100) { + if (v && v.length > 100) { v = v.substr(0, 100) + "..."; } dd.text(v).click(function() {