diff options
Diffstat (limited to 'ONAP-PDP/src')
-rw-r--r-- | ONAP-PDP/src/main/java/org/onap/policy/xacml/custom/OnapFunctionDefinitionFactory.java | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/ONAP-PDP/src/main/java/org/onap/policy/xacml/custom/OnapFunctionDefinitionFactory.java b/ONAP-PDP/src/main/java/org/onap/policy/xacml/custom/OnapFunctionDefinitionFactory.java index 87075f9bb..ea4e90eda 100644 --- a/ONAP-PDP/src/main/java/org/onap/policy/xacml/custom/OnapFunctionDefinitionFactory.java +++ b/ONAP-PDP/src/main/java/org/onap/policy/xacml/custom/OnapFunctionDefinitionFactory.java @@ -49,7 +49,7 @@ public class OnapFunctionDefinitionFactory extends FunctionDefinitionFactory { } private static void initMap() { - if (needMapInit) { + synchronized(mapFunctionDefinitions) { if (needMapInit) { needMapInit = false; @@ -74,7 +74,6 @@ public class OnapFunctionDefinitionFactory extends FunctionDefinitionFactory { register(FD_CUSTOM_REGEXP_MATCH); } } - } } public OnapFunctionDefinitionFactory() { |