Skip to content

Commit 57291cf

Browse files
committed
initialize processors array when no processors are provided
1 parent 8e0220c commit 57291cf

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/robotlegs/bender/extensions/signalCommandMap/impl/SignalCommandTrigger.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,11 @@ export class SignalCommandTrigger implements ICommandTrigger {
5151
) {
5252
this._injector = injector;
5353
this._signalClass = signalClass;
54-
this._mappings = new CommandMappingList(this, processors, logger);
54+
this._mappings = new CommandMappingList(
55+
this,
56+
processors ? processors : [],
57+
logger
58+
);
5559
this._executor = new CommandExecutor(
5660
injector,
5761
this._mappings.removeMapping

0 commit comments

Comments
 (0)