Skip to content

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

npe fix

orbiter5b14bdfffd8e
diff --git a/htroot/solr/select.java b/htroot/solr/select.java
index 51288ec14..dd1ce4716 100644
--- a/htroot/solr/select.java
+++ b/htroot/solr/select.java
@@ -252,12 +252,12 @@ public class select {
// log result
Object rv = response.getValues().get("response");
- int matches = ((ResultContext) rv).docs.matches();
if (rv != null && rv instanceof ResultContext) {
+ int matches = ((ResultContext) rv).docs.matches();
AccessTracker.addToDump(q, Integer.toString(matches));
+ ConcurrentLog.info("SOLR Query", "results: " + matches + ", for query:" + post.toString());
}
- ConcurrentLog.info("SOLR Query", "results: " + matches + ", for query:" + post.toString());
return null;
}
}