Skip to content

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

*) Bugfix for Blacklist_p.java - avoid nullpointerexception

thelif94131c13d4f
diff --git a/htroot/Blacklist_p.java b/htroot/Blacklist_p.java
index c4aeede5a..9e6f8cb2a 100644
--- a/htroot/Blacklist_p.java
+++ b/htroot/Blacklist_p.java
@@ -196,7 +196,7 @@ public class Blacklist_p {
// get the entry that should be deleted
String oldEntry = (String)post.get("selectedEntry");
- if (oldEntry.trim().length() == 0) {
+ if (oldEntry == null || oldEntry.trim().length() == 0) {
prop.put("LOCATION",header.get("PATH") + "?selectList=&selectedListName=" + blacklistToUse);
return prop;
}