new unit tests for sdc-dao
[sdc.git] / catalog-dao / src / main / java / org / openecomp / sdc / be / resources / data / PolicyTypeData.java
index 28081cc..8847262 100644 (file)
@@ -69,8 +69,10 @@ public class PolicyTypeData extends GraphNode {
         policyTypeDataDefinition
                 .setDescription((String) properties.get(GraphPropertiesDictionary.DESCRIPTION.getProperty()));
 
-        policyTypeDataDefinition.setHighestVersion(
-                (boolean) properties.get(GraphPropertiesDictionary.IS_HIGHEST_VERSION.getProperty()));
+        if (properties.get(GraphPropertiesDictionary.IS_HIGHEST_VERSION.getProperty()) != null) {
+               policyTypeDataDefinition.setHighestVersion(
+                               (boolean) properties.get(GraphPropertiesDictionary.IS_HIGHEST_VERSION.getProperty()));
+               }
 
         policyTypeDataDefinition.setVersion((String) properties.get(GraphPropertiesDictionary.VERSION.getProperty()));