summaryrefslogtreecommitdiffstats
path: root/sonar-server/src/main/java
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:24:09 +0200
commitf8136fcae2693df33c4c9cd8edefe5a381f165b3 (patch)
treed838c7abf28eddbc6d8a0d58466efb30190507da /sonar-server/src/main/java
parent426b079905ae3ba2cd7f44c020387be3634dddc0 (diff)
downloadsonarqube-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.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) {