Skip to content

Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance

fix for http://forum.yacy-websuche.de/viewtopic.php?p=20657#p20657

orbiter875741bcff82
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);