diff options
author | Bojan Suzic <bojan.suzic@iaik.tugraz.at> | 2014-04-04 14:33:42 +0200 |
---|---|---|
committer | Bojan Suzic <bojan.suzic@iaik.tugraz.at> | 2014-04-04 14:33:42 +0200 |
commit | 6ae91a69cc6b679bfc8915f6b190a2695722b200 (patch) | |
tree | 8b8a7087bcd3a06d06f705384dffc5b90c5f962b | |
parent | 0beac41de90bbe07e7a33a18fb66b9f18507b027 (diff) | |
download | moa-id-spss-6ae91a69cc6b679bfc8915f6b190a2695722b200.tar.gz moa-id-spss-6ae91a69cc6b679bfc8915f6b190a2695722b200.tar.bz2 moa-id-spss-6ae91a69cc6b679bfc8915f6b190a2695722b200.zip |
fixing nullpointer exception
-rw-r--r-- | id/ConfigWebTool/src/main/java/at/gv/egovernment/moa/id/configuration/data/oa/AttributeHelper.java | 6 |
1 files changed, 5 insertions, 1 deletions
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; } |