Commit 9e59fabe by Péter Gergő Barna Committed by Madhan Neethiraj

ATLAS-2176: NegativeSSLAndKerberosTest failing due to error in initialization

parent 234b3005
...@@ -118,6 +118,7 @@ public class AtlasTypeDefStoreInitializer implements ActiveStateChangeHandler { ...@@ -118,6 +118,7 @@ public class AtlasTypeDefStoreInitializer implements ActiveStateChangeHandler {
File topModeltypesDir = new File(modelsDirName); File topModeltypesDir = new File(modelsDirName);
File[] modelsDirContents = topModeltypesDir.exists() ? topModeltypesDir.listFiles() : null; File[] modelsDirContents = topModeltypesDir.exists() ? topModeltypesDir.listFiles() : null;
if (modelsDirContents != null && modelsDirContents.length > 0) {
Arrays.sort(modelsDirContents); Arrays.sort(modelsDirContents);
for (File folder : modelsDirContents) { for (File folder : modelsDirContents) {
...@@ -129,6 +130,7 @@ public class AtlasTypeDefStoreInitializer implements ActiveStateChangeHandler { ...@@ -129,6 +130,7 @@ public class AtlasTypeDefStoreInitializer implements ActiveStateChangeHandler {
loadModelsInFolder(folder); loadModelsInFolder(folder);
} }
} }
}
// load any files in the top models folder and any associated patches. // load any files in the top models folder and any associated patches.
loadModelsInFolder(topModeltypesDir); loadModelsInFolder(topModeltypesDir);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment