aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStephane Gamard <stephane.gamard@searchbox.com>2014-07-03 16:08:33 +0200
committerStephane Gamard <stephane.gamard@searchbox.com>2014-07-03 16:08:33 +0200
commit266d901ba901b8cfd33727610efeb6a0fcfa0e2a (patch)
tree39a9ca4ea2145af0e2e860d8ac10932ad953e7bd
parent6086a6ea7b314b50dfdf617f9f2de3e1a8129601 (diff)
downloadsonarqube-266d901ba901b8cfd33727610efeb6a0fcfa0e2a.tar.gz
sonarqube-266d901ba901b8cfd33727610efeb6a0fcfa0e2a.zip
fix quality flaw (possible NPE)
-rw-r--r--sonar-server/src/main/java/org/sonar/server/search/IndexQueue.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/sonar-server/src/main/java/org/sonar/server/search/IndexQueue.java b/sonar-server/src/main/java/org/sonar/server/search/IndexQueue.java
index 70ad14f7af2..e556a6635c6 100644
--- a/sonar-server/src/main/java/org/sonar/server/search/IndexQueue.java
+++ b/sonar-server/src/main/java/org/sonar/server/search/IndexQueue.java
@@ -82,7 +82,7 @@ public class IndexQueue extends LinkedBlockingQueue<Runnable>
refreshTime = System.currentTimeMillis();
index.refresh();
refreshTime = System.currentTimeMillis() - refreshTime;
- refreshes.add(action.getIndex().getIndexName());
+ refreshes.add(index.getIndexName());
}
types.add(action.getPayloadClass().getSimpleName());
} catch (InterruptedException e) {