Skip to content

Commit

Permalink
MID-9112:fix for NPE
Browse files Browse the repository at this point in the history
  • Loading branch information
skublik committed Sep 21, 2023
1 parent 7cc3739 commit e85262f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ private List<WizardStep> createPredefinedMappingSteps(
steps.add(new PredefinedMappingStepPanel(getAssignmentHolderModel(), valueModel) {
@Override
protected void onExitPerformed(AjaxRequestTarget target) {
WebComponentUtil.showToastForRecordedButUnsavedChanges(target, valueModel.getObject());
showActivationTablePanel(target, direction);
}
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ protected IModel<?> getSubTextModel() {

@Override
protected boolean isSubmitVisible() {
return false;
return true;
}

@Override
Expand All @@ -72,7 +72,7 @@ protected boolean isExitButtonVisible() {

@Override
public VisibleEnableBehaviour getBackBehaviour() {
return VisibleBehaviour.ALWAYS_VISIBLE_ENABLED;
return VisibleBehaviour.ALWAYS_INVISIBLE;
}

@Override
Expand All @@ -85,12 +85,6 @@ public VisibleEnableBehaviour getNextBehaviour() {
return VisibleBehaviour.ALWAYS_INVISIBLE;
}

@Override
public boolean onBackPerformed(AjaxRequestTarget target) {
onExitPerformed(target);
return false;
}

@Override
protected ItemVisibilityHandler getVisibilityHandler() {
return wrapper -> {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,9 @@ public String convertToString(Duration duration, Locale locale) {
}

private String convertToString(Duration duration, DatatypeConstants.Field unit) {
if (duration == null) {
return null;
}
List<DatatypeConstants.Field> choices = getChoicesAsField();

Optional<DatatypeConstants.Field> field = choices
Expand Down

0 comments on commit e85262f

Please sign in to comment.