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:24:09 +0200 |
commit | f8136fcae2693df33c4c9cd8edefe5a381f165b3 (patch) | |
tree | d838c7abf28eddbc6d8a0d58466efb30190507da /sonar-server/src/main/java | |
parent | 426b079905ae3ba2cd7f44c020387be3634dddc0 (diff) | |
download | sonarqube-f8136fcae2693df33c4c9cd8edefe5a381f165b3.tar.gz sonarqube-f8136fcae2693df33c4c9cd8edefe5a381f165b3.zip |
fix quality flaw (possible NPE)
Diffstat (limited to 'sonar-server/src/main/java')
-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) { |