Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added check in EventHandler to make sure IAsynchronousEvents are actu…
…ally being used in a Chain
- Loading branch information
1 parent
7395002
commit 1b7f620
Showing
1 changed file
with
1 addition
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -128,7 +128,7 @@ package org.swizframework.utils.event | |
throw new Error( "Unable to handle event: " + metadataTag.host.name + "() requires " + getRequiredParameterCount() + " parameters, and no properties were specified." ); | ||
} | ||
|
||
if( event is IAsynchronousEvent ) | ||
if( event is IAsynchronousEvent && IAsynchronousEvent( event ).step != null ) | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
johnyanarella
Member
|
||
{ | ||
if( result is IAsynchronousOperation ) | ||
IAsynchronousEvent( event ).step.addAsynchronousOperation( result as IAsynchronousOperation ); | ||
|
why do we need this?