Commit ce401be4 authored by Max's avatar Max
Browse files

Only update config if something's returned

parent 9e2112bb
......@@ -119,7 +119,10 @@ public final class ComputingElement extends Thread {
logger.info("Building new SiteMap.");
try {
config = ConfigUtils.getConfigFromLdap();
final HashMap<String, Object> newConfig = ConfigUtils.getConfigFromLdap();
if (newConfig != null) {
config = newConfig;
site = (String) config.get("site_accountname");
getSiteMap();
......@@ -129,6 +132,7 @@ public final class ComputingElement extends Thread {
logger.info("[" + field + ": " + entry + "]");
});
}
}
catch (Exception ex) {
logger.log(Level.WARNING, "Error syncing with LDAP: ", ex);
}
......
Supports Markdown
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