From df548f444f14c98f7c8b6b8df70f8250e929557f Mon Sep 17 00:00:00 2001 From: orbiter Date: Sun, 3 Feb 2008 22:14:22 +0000 Subject: [PATCH] one more NPE patch for a search item case git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@4440 6c8d7289-2bf4-0310-a012-ef5d649a1542 --- htroot/yacysearchitem.java | 1 + 1 file changed, 1 insertion(+) 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 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);