From 875741bcff827b96c65ba3affe619a9cfda88000 Mon Sep 17 00:00:00 2001 From: orbiter Date: Thu, 2 Sep 2010 10:05:04 +0000 Subject: [PATCH] fix for http://forum.yacy-websuche.de/viewtopic.php?p=20657#p20657 git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@7090 6c8d7289-2bf4-0310-a012-ef5d649a1542 --- htroot/api/table_p.java | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/htroot/api/table_p.java b/htroot/api/table_p.java index 48dff143d..db8d6c6bc 100644 --- a/htroot/api/table_p.java +++ b/htroot/api/table_p.java @@ -98,9 +98,11 @@ public class table_p { prop.put("showtable_list_" + count + "_count", count); for (int i = 0; i < columns.size(); i++) { cellName = columns.get(i); - cellValue = new String(trow.get(cellName)); - if (selectKey != null && cellName.equals(selectKey) && !cellValue.matches(selectValue)) { - continue rowloop; + if (trow.containsKey(cellName)) { + cellValue = new String(trow.get(cellName)); + if (selectKey != null && cellName.equals(selectKey) && !cellValue.matches(selectValue)) continue rowloop; + } else { + cellValue = ""; } prop.putHTML("showtable_list_" + count + "_columns_" + i + "_column", cellName); prop.putHTML("showtable_list_" + count + "_columns_" + i + "_cell", cellValue);