From 5b14bdfffd8ec473b160e40cf6576c36b5992acc Mon Sep 17 00:00:00 2001 From: orbiter Date: Sun, 1 Sep 2013 13:28:37 +0200 Subject: [PATCH] npe fix --- htroot/solr/select.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; } }