]> source.dussan.org Git - sonarqube.git/commitdiff
DAOv.2 - Fixed ESNode when no type property is set (defaults to DATA)
authorStephane Gamard <stephane.gamard@searchbox.com>
Tue, 27 May 2014 16:33:47 +0000 (18:33 +0200)
committerStephane Gamard <stephane.gamard@searchbox.com>
Tue, 27 May 2014 16:46:36 +0000 (18:46 +0200)
sonar-server/src/main/java/org/sonar/server/search/ESNode.java

index fe5b20375e605e4c9789b18eec47caf331665571..158cfe2d7e9a76af504211a15427db5fec4ab5df 100644 (file)
@@ -75,6 +75,10 @@ public class ESNode implements Startable {
 
     IndexProperties.ES_TYPE type = IndexProperties.ES_TYPE.valueOf(settings.getString(IndexProperties.TYPE));
 
+    if(type == null){
+      type = IndexProperties.ES_TYPE.DATA;
+    }
+
     switch (type) {
       case MEMORY:
         initMemoryES();