diff --git a/dmp-backend/web/src/main/java/eu/eudat/models/data/user/components/datasetprofile/Field.java b/dmp-backend/web/src/main/java/eu/eudat/models/data/user/components/datasetprofile/Field.java index 867c0b3a9..c674baea6 100644 --- a/dmp-backend/web/src/main/java/eu/eudat/models/data/user/components/datasetprofile/Field.java +++ b/dmp-backend/web/src/main/java/eu/eudat/models/data/user/components/datasetprofile/Field.java @@ -230,7 +230,7 @@ public class Field implements Comparable, PropertiesModelBuilder, ViewStyleDefin @Override public void toMap(Map fieldValues) { if (this.value != null) { - if (this.viewStyle.getRenderStyle().equals("datasetIdentifier")) { + if (this.viewStyle != null && this.viewStyle.getRenderStyle().equals("datasetIdentifier")) { ObjectMapper mapper = new ObjectMapper(); String valueString = null; try {