This PR adds a null check during error handling in AsyncTaskActivity. As described in #1054, if the context parameter is passed as null to RunAsync, and the call to ExecuteAsync fails for some task-specific reason, the error handling code uses that parameter to check which error propagation mode is being used. If the parameter is null, an unexpected NullReferenceException will be raised, instead of the expected TaskFailureException.
A null check is added to prevent this from happening.
This PR adds a null check during error handling in
AsyncTaskActivity
. As described in #1054, if thecontext
parameter is passed as null toRunAsync
, and the call toExecuteAsync
fails for some task-specific reason, the error handling code uses that parameter to check which error propagation mode is being used. If the parameter is null, an unexpectedNullReferenceException
will be raised, instead of the expectedTaskFailureException
.A null check is added to prevent this from happening.