Skip to content

Commit

Permalink
request access: fixed silly NPE (boolean/Boolean)
Browse files Browse the repository at this point in the history
  • Loading branch information
1azyman committed Feb 22, 2024
1 parent 7b84842 commit a443b65
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -774,8 +774,8 @@ private OperationResult submitMultiRequest(PageBase page) {

ModelExecuteOptions options = createSubmitModelOptions(page.getPrismContext());
options.initialPartialProcessing(new PartialProcessingOptionsType().inbound(SKIP).projection(SKIP));
boolean executeAfterApprovals = isDefaultExecuteAfterAllApprovals(page);
options.executeImmediatelyAfterApproval(!executeAfterApprovals);
Boolean executeAfterApprovals = isDefaultExecuteAfterAllApprovals(page);
options.executeImmediatelyAfterApproval(executeAfterApprovals != null ? !executeAfterApprovals : null);
request.setExecutionOptions(options.toModelExecutionOptionsType());

PrismObject<UserType> user = WebModelServiceUtils.loadObject(poiRef, page);
Expand Down Expand Up @@ -824,8 +824,8 @@ private OperationResult submitSingleRequest(PageBase page) {

ModelExecuteOptions options = createSubmitModelOptions(page.getPrismContext());
options.initialPartialProcessing(new PartialProcessingOptionsType().inbound(SKIP).projection(SKIP));
boolean executeAfterApprovals = isDefaultExecuteAfterAllApprovals(page);
options.executeImmediatelyAfterApproval(!executeAfterApprovals);
Boolean executeAfterApprovals = isDefaultExecuteAfterAllApprovals(page);
options.executeImmediatelyAfterApproval(executeAfterApprovals != null ? !executeAfterApprovals : null);
page.getModelService().executeChanges(Collections.singletonList(delta), options, task, result);

result.recordSuccess();
Expand Down

0 comments on commit a443b65

Please sign in to comment.