new unit tests for sdc-dao
[sdc.git] / catalog-dao / src / main / java / org / openecomp / sdc / be / resources / data / GroupTypeData.java
index 87f4fcf..3a92819 100644 (file)
@@ -60,9 +60,11 @@ public class GroupTypeData extends GraphNode {
                groupTypeDataDefinition.setType((String) properties.get(GraphPropertiesDictionary.TYPE.getProperty()));
 
                groupTypeDataDefinition.setVersion((String) properties.get(GraphPropertiesDictionary.VERSION.getProperty()));
-
-               groupTypeDataDefinition.setHighestVersion(
-                               (boolean) properties.get(GraphPropertiesDictionary.IS_HIGHEST_VERSION.getProperty()));
+               
+               if (properties.get(GraphPropertiesDictionary.IS_HIGHEST_VERSION.getProperty()) != null) {
+                       groupTypeDataDefinition.setHighestVersion(
+                                       (boolean) properties.get(GraphPropertiesDictionary.IS_HIGHEST_VERSION.getProperty()));
+               }
 
                groupTypeDataDefinition
                                .setDescription((String) properties.get(GraphPropertiesDictionary.DESCRIPTION.getProperty()));