diff options
author | Stephane Gamard <stephane.gamard@searchbox.com> | 2014-07-03 16:08:33 +0200 |
---|---|---|
committer | Stephane Gamard <stephane.gamard@searchbox.com> | 2014-07-03 16:08:33 +0200 |
commit | 266d901ba901b8cfd33727610efeb6a0fcfa0e2a (patch) | |
tree | 39a9ca4ea2145af0e2e860d8ac10932ad953e7bd | |
parent | 6086a6ea7b314b50dfdf617f9f2de3e1a8129601 (diff) | |
download | sonarqube-266d901ba901b8cfd33727610efeb6a0fcfa0e2a.tar.gz sonarqube-266d901ba901b8cfd33727610efeb6a0fcfa0e2a.zip |
fix quality flaw (possible NPE)
-rw-r--r-- | sonar-server/src/main/java/org/sonar/server/search/IndexQueue.java | 2 |
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) { |