From 916ed2840021e2c1300633b48387cdd71d9443d7 Mon Sep 17 00:00:00 2001 From: Rashid Khan Date: Wed, 29 May 2013 13:22:39 -0700 Subject: [PATCH] Added null and undefined handling to highlight filter, closes #123 --- panels/table/module.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/panels/table/module.js b/panels/table/module.js index ffac5446caccb..e3494d07ef36c 100644 --- a/panels/table/module.js +++ b/panels/table/module.js @@ -269,7 +269,7 @@ angular.module('kibana.table', []) }) .filter('highlight', function() { return function(text) { - if (text.toString().length) { + if (text.toString().length > 0 && !_.isUndefined(text) && !_.isNull(text)) { return text.toString(). replace(/&/g, '&'). replace(/