From 6ae91a69cc6b679bfc8915f6b190a2695722b200 Mon Sep 17 00:00:00 2001 From: Bojan Suzic Date: Fri, 4 Apr 2014 14:33:42 +0200 Subject: fixing nullpointer exception --- .../egovernment/moa/id/configuration/data/oa/AttributeHelper.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'id/ConfigWebTool/src/main') diff --git a/id/ConfigWebTool/src/main/java/at/gv/egovernment/moa/id/configuration/data/oa/AttributeHelper.java b/id/ConfigWebTool/src/main/java/at/gv/egovernment/moa/id/configuration/data/oa/AttributeHelper.java index 349f3bf4a..012e8121f 100644 --- a/id/ConfigWebTool/src/main/java/at/gv/egovernment/moa/id/configuration/data/oa/AttributeHelper.java +++ b/id/ConfigWebTool/src/main/java/at/gv/egovernment/moa/id/configuration/data/oa/AttributeHelper.java @@ -22,7 +22,11 @@ public class AttributeHelper { public AttributeHelper(StorkAttribute attribute) { name = attribute.getName(); mandatory = false; - readonly = attribute.isMandatory(); + if (attribute.isMandatory()==null) { // TODO check details + attribute.setMandatory(false); + } else { + readonly = attribute.isMandatory(); + } isUsed = readonly; } -- cgit v1.2.3