]> source.dussan.org Git - sonarqube.git/commitdiff
fix quality flaw (possible NPE)
authorStephane Gamard <stephane.gamard@searchbox.com>
Thu, 3 Jul 2014 14:08:33 +0000 (16:08 +0200)
committerStephane Gamard <stephane.gamard@searchbox.com>
Thu, 3 Jul 2014 14:08:33 +0000 (16:08 +0200)
sonar-server/src/main/java/org/sonar/server/search/IndexQueue.java

index 70ad14f7af214eb25ef70f8f45be25a483d2c2ce..e556a6635c6fe6bfa2b7f77e6ca03d5450dc3410 100644 (file)
@@ -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) {