Skip to content

Commit

Permalink
Fix form dialog check
Browse files Browse the repository at this point in the history
  • Loading branch information
eschleb committed Apr 2, 2024
1 parent 8a58cf7 commit 3e4e89f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ public void execute() throws ActionExecutionException {
@Override
protected DialogDefinition getDialogDefinition(final DialogDefinitionRegistry dialogDefinitionRegistry, final I18nizer i18nizer) {
final DialogDefinition dialogDefinition = dialogDefinitionRegistry.getProvider(getDefinition().getDialogId()).get();
if (dialogDefinition instanceof FormDialogDefinition) {
if (!(dialogDefinition instanceof FormDialogDefinition)) {
throw new IllegalArgumentException("Provided dialog id is not a form dialog!");
}
addNodeNameValidatorToJcrNameField(dialogDefinition);
Expand Down

0 comments on commit 3e4e89f

Please sign in to comment.