Skip to content

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

one more NPE patch for a search item case

orbiterdf548f444f14
diff --git a/htroot/yacysearchitem.java b/htroot/yacysearchitem.java
index 22cd997eb..9238c768f 100644
--- a/htroot/yacysearchitem.java
+++ b/htroot/yacysearchitem.java
@@ -145,6 +145,7 @@ public class yacysearchitem {
final Iterator<String> iter = topwords.iterator();
while (iter.hasNext()) {
word = (String) iter.next();
+ if ((theQuery == null) || (theQuery.queryString == null)) break;
if (word != null) {
prop.putHTML("references_words_" + hintcount + "_word", word);
prop.putHTML("references_words_" + hintcount + "_newsearch", theQuery.queryString.replace(' ', '+') + "+" + word);