Skip to content

Commit

Permalink
Merge pull request #10 from AngelaFrancisca/feature/DRD-2
Browse files Browse the repository at this point in the history
Fixed NPE on create dispatch DRD-2 #resolve
  • Loading branch information
Luis-Cruz authored Jul 16, 2020
2 parents 974eca3 + a520db8 commit f4888e9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ protected RegulationDispatchWorkflowMetaProcess(String reference, LocalDate emis
init(reference, emissionDate, emissor, description, regulationReference);
}

@Atomic
public static RegulationDispatchWorkflowMetaProcess createNewProcess(final CreateRegulationDispatchBean bean,
final User user) {
String reference = bean.getReference();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ public ActionForward createInvalid(final ActionMapping mapping, final ActionForm
return forward("/module/regulation/dispatch/domain/RegulationDispatchWorkflowMetaProcess/create.jsp");
}

@Atomic

public ActionForward create(final ActionMapping mapping, final ActionForm form, final HttpServletRequest request,
final HttpServletResponse response) {
CreateRegulationDispatchBean bean = getRenderedObject("bean");
Expand Down Expand Up @@ -115,6 +115,7 @@ public ActionForward editInvalid(final ActionMapping mapping, final ActionForm f
final HttpServletResponse response) {
RegulationDispatchActivityInformation bean = getRenderedObject("bean");
request.setAttribute("bean", bean);
request.setAttribute("dispatch", bean.getProcess());

return forward("/module/regulation/dispatch/domain/RegulationDispatchWorkflowMetaProcess/edit.jsp");
}
Expand Down

0 comments on commit f4888e9

Please sign in to comment.