From 216e20f9c3ec7b57669d0451a840880ecca78a02 Mon Sep 17 00:00:00 2001 From: ortizh Date: Tue, 21 May 2019 13:49:33 +0200 Subject: [PATCH] fix bug --- src/main/java/fr/ill/ics/core/property/PropertyManager.java | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/main/java/fr/ill/ics/core/property/PropertyManager.java b/src/main/java/fr/ill/ics/core/property/PropertyManager.java index 46f405d..2117401 100644 --- a/src/main/java/fr/ill/ics/core/property/PropertyManager.java +++ b/src/main/java/fr/ill/ics/core/property/PropertyManager.java @@ -226,7 +226,6 @@ public class PropertyManager { return false; } } else { - for (int i = 0; i < files.length; i++) { // We may have more than one "Properties.xml" file (see acquisition controller for example) propertyParser.parseXmlFile(files[i]); @@ -235,9 +234,8 @@ public class PropertyManager { } ConfigManager.getInstance().initControllerProperties(controllerType); - - clientFilesFoundPerControllerType.put(controllerType, true); - return true; + clientFilesFoundPerControllerType.put(controllerType, !(files == null || files.length == 0)); + return clientFilesFoundPerControllerType.get(controllerType); } -- GitLab