Skip to content

Commit

Permalink
Merge pull request #9221 from fedemp/multicommand-firstEnabled-undefined
Browse files Browse the repository at this point in the history
Fix (core): Undefined commands are no longer executed in `MultiCommand.execute()`.
  • Loading branch information
maxbarnas authored Apr 12, 2021
2 parents 6f949bc + f09bf0a commit e142d6d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/ckeditor5-core/src/multicommand.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ export default class MultiCommand extends Command {
execute( ...args ) {
const command = this._getFirstEnabledCommand();

return command.execute( args );
return command != null && command.execute( args );
}

/**
Expand Down

0 comments on commit e142d6d

Please sign in to comment.