From bab448fc9e08a02e3f3c1bdfd188c20195b6a88d Mon Sep 17 00:00:00 2001 From: Maxwell Date: Mon, 11 Nov 2013 13:40:55 -0200 Subject: [PATCH] Fix Uncaught TypeError: Cannot read property 'length' of undefined Fix Uncaught TypeError: Cannot read property 'length' of undefined --- core/page/user_properties/user_properties.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/page/user_properties/user_properties.js b/core/page/user_properties/user_properties.js index 5fa1f54c1c..08d94a8626 100644 --- a/core/page/user_properties/user_properties.js +++ b/core/page/user_properties/user_properties.js @@ -83,7 +83,7 @@ wn.UserProperties = Class.extend({ render: function(prop_list) { this.body.empty(); this.prop_list = prop_list; - if(!prop_list.length) { + if(!prop_list || !prop_list.length) { this.body.html("
"+wn._("No User Properties found.")+"
"); } else { this.show_property_table(); @@ -231,4 +231,4 @@ wn.UserProperties = Class.extend({ }); } -}) \ No newline at end of file +})