From 4e3a3b573af8fb98214a3221abc462ad5eaaef22 Mon Sep 17 00:00:00 2001 From: gkolokythas Date: Tue, 17 Dec 2019 18:17:21 +0200 Subject: [PATCH] Fixes bug on fetching Datasets. --- .../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 98680bf0a..4950261c4 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 @@ -199,7 +199,7 @@ public class Field implements Comparable, PropertiesModelBuilder, ViewStyleDefin stringList.add(jsonArray.getJSONObject(i).toString()); } this.value = stringList; - } catch (JSONException e) { + } catch (JSONException | NullPointerException e) { this.value = (String) properties.get(this.id); } this.multiplicityItems = new LinkedList<>();