Skip to content

Commit

Permalink
fixed a NPE bug (from SVN 5888)
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@5892 6c8d7289-2bf4-0310-a012-ef5d649a1542
  • Loading branch information
orbiter committed Apr 27, 2009
1 parent 06ed4ef commit d9e6250
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions htroot/yacysearchitem.java
Expand Up @@ -142,10 +142,10 @@ public static serverObjects respond(final httpRequestHeader header, final server
((yacyURL.probablyRootURL(result.hash())) ? ", probablyRootURL" : "") +
(((wordURL = yacyURL.probablyWordURL(result.hash(), query[0])) != null) ? ", probablyWordURL=" + wordURL.toNormalform(false, true) : ""));
final plasmaSnippetCache.TextSnippet snippet = result.textSnippet();
final String desc = snippet.getLineMarked(theQuery.fullqueryHashes);
prop.put("content_description", (snippet == null) ? "" : desc);
prop.putXML("content_description-xml", (snippet == null) ? "" : desc);
prop.putJSON("content_description-json", (snippet == null) ? "" : desc);
final String desc = (snippet == null) ? "" : snippet.getLineMarked(theQuery.fullqueryHashes);
prop.put("content_description", desc);
prop.putXML("content_description-xml", desc);
prop.putJSON("content_description-json", desc);
serverProfiling.update("SEARCH", new plasmaProfiling.searchEvent(theQuery.id(true), plasmaSearchEvent.FINALIZATION + "-" + item, 0, 0), false);

return prop;
Expand Down

0 comments on commit d9e6250

Please sign in to comment.