=== modified file 'dhis-2/dhis-web/dhis-web-dataentry/src/main/java/org/hisp/dhis/de/action/LoadFormAction.java' --- dhis-2/dhis-web/dhis-web-dataentry/src/main/java/org/hisp/dhis/de/action/LoadFormAction.java 2013-12-03 16:29:54 +0000 +++ dhis-2/dhis-web/dhis-web-dataentry/src/main/java/org/hisp/dhis/de/action/LoadFormAction.java 2013-12-03 16:35:10 +0000 @@ -404,7 +404,7 @@ for ( DataElementOperand operand : section.getGreyedFields() ) { - if ( operand.getDataElement() != null && operand.getCategoryOptionCombo() != null ) + if ( operand != null && operand.getDataElement() != null && operand.getCategoryOptionCombo() != null ) { greyedFields.put( operand.getDataElement().getUid() + ":" + operand.getCategoryOptionCombo().getUid(), true ); }