Skip to content
Snippets Groups Projects
Commit a169f70d authored by gnaegi's avatar gnaegi
Browse files

OO-2703 catch NPE in when saveAsDoneButton is not initialized

parent 796895eb
No related branches found
No related tags found
No related merge requests found
...@@ -493,7 +493,9 @@ public class EvaluationFormController extends FormBasicController implements Val ...@@ -493,7 +493,9 @@ public class EvaluationFormController extends FormBasicController implements Val
dbInstance.commit(); dbInstance.commit();
loadResponses(); loadResponses();
updateElements(); updateElements();
saveAsDoneButton.setVisible(false); if (saveAsDoneButton != null) {
saveAsDoneButton.setVisible(false);
}
dbInstance.commit(); dbInstance.commit();
fireEvent(ureq, Event.DONE_EVENT); fireEvent(ureq, Event.DONE_EVENT);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment