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

ATLAS-2176: NegativeSSLAndKerberosTest failing due to error in initialization

parent 234b3005
...@@ -118,16 +118,18 @@ public class AtlasTypeDefStoreInitializer implements ActiveStateChangeHandler { ...@@ -118,16 +118,18 @@ 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;
Arrays.sort(modelsDirContents); if (modelsDirContents != null && modelsDirContents.length > 0) {
Arrays.sort(modelsDirContents);
for (File folder : modelsDirContents) {
if (folder.isFile()) { for (File folder : modelsDirContents) {
// ignore files if (folder.isFile()) {
continue; // ignore files
} else if (!folder.getName().equals(PATCHES_FOLDER_NAME)){ continue;
// load the models alphabetically in the subfolders apart from patches } else if (!folder.getName().equals(PATCHES_FOLDER_NAME)){
loadModelsInFolder(folder); // load the models alphabetically in the subfolders apart from patches
} 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.
......
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