From 354f56b3b0d8112b3d7bb7d4624330de9d6c2d85 Mon Sep 17 00:00:00 2001 From: Michael M Slusarz Date: Mon, 13 Sep 2010 16:15:32 -0600 Subject: [PATCH] These entries might be null --- imp/js/dimpbase.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/imp/js/dimpbase.js b/imp/js/dimpbase.js index e52d00d86..ba56fc3de 100644 --- a/imp/js/dimpbase.js +++ b/imp/js/dimpbase.js @@ -433,7 +433,9 @@ var DimpBase = { if (this.isSearch(null, true)) { re = new RegExp("(" + $F('qsearch_input') + ")", "i"); [ 'from', 'subject' ].each(function(h) { - r[h] = r[h].gsub(re, '#{1}'); + if (r[h] !== null) { + r[h] = r[h].gsub(re, '#{1}'); + } }); } -- 2.11.0