From c5f4701f97cc7a032a88d7acbd3276adf6a1aee9 Mon Sep 17 00:00:00 2001 From: George Kalampokis Date: Thu, 11 Jun 2020 17:59:53 +0300 Subject: [PATCH] Fixed issue when creating DMP through the wizard --- .../eudat/models/data/user/components/datasetprofile/Field.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 {