aboutsummaryrefslogtreecommitdiff
path: root/id/ConfigWebTool/src/main
diff options
context:
space:
mode:
authorBojan Suzic <bojan.suzic@iaik.tugraz.at>2014-04-04 14:33:42 +0200
committerBojan Suzic <bojan.suzic@iaik.tugraz.at>2014-04-04 14:33:42 +0200
commit6ae91a69cc6b679bfc8915f6b190a2695722b200 (patch)
tree8b8a7087bcd3a06d06f705384dffc5b90c5f962b /id/ConfigWebTool/src/main
parent0beac41de90bbe07e7a33a18fb66b9f18507b027 (diff)
downloadmoa-id-spss-6ae91a69cc6b679bfc8915f6b190a2695722b200.tar.gz
moa-id-spss-6ae91a69cc6b679bfc8915f6b190a2695722b200.tar.bz2
moa-id-spss-6ae91a69cc6b679bfc8915f6b190a2695722b200.zip
fixing nullpointer exception
Diffstat (limited to 'id/ConfigWebTool/src/main')
-rw-r--r--id/ConfigWebTool/src/main/java/at/gv/egovernment/moa/id/configuration/data/oa/AttributeHelper.java6
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;
}