aboutsummaryrefslogtreecommitdiffstats
path: root/common/openecomp-common-configuration-management
diff options
context:
space:
mode:
Diffstat (limited to 'common/openecomp-common-configuration-management')
-rw-r--r--common/openecomp-common-configuration-management/openecomp-configuration-management-core/src/main/java/org/openecomp/config/impl/AgglomerateConfiguration.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/common/openecomp-common-configuration-management/openecomp-configuration-management-core/src/main/java/org/openecomp/config/impl/AgglomerateConfiguration.java b/common/openecomp-common-configuration-management/openecomp-configuration-management-core/src/main/java/org/openecomp/config/impl/AgglomerateConfiguration.java
index d50948c201..9556b480c6 100644
--- a/common/openecomp-common-configuration-management/openecomp-configuration-management-core/src/main/java/org/openecomp/config/impl/AgglomerateConfiguration.java
+++ b/common/openecomp-common-configuration-management/openecomp-configuration-management-core/src/main/java/org/openecomp/config/impl/AgglomerateConfiguration.java
@@ -21,10 +21,11 @@ public class AgglomerateConfiguration extends DatabaseConfiguration {
* @return the property value
*/
public Object getPropertyValue(String key) {
- Object objToReturn = null;
+ Object objToReturn;
objToReturn = store.get(key);
if (objToReturn == null && !store.containsKey(key)) {
- store.put(key, objToReturn = super.getProperty(key));
+ objToReturn = super.getProperty(key);
+ store.put(key, objToReturn);
}
return objToReturn;
}