You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If a rule's OnSuccess or OnFailure action's Context is not defined (resulting in a null value), during execution of the rule's action a NullReferenceException is thrown during the construction of the ActionContext instance.
While the builtin Actions require Context information, it is possible that a custom action would not. The action itself should be responsible for handling context information that is missing by detecting missing items within the context dictionary. The action's code should determine if an exception is the proper response.
If a rule's OnSuccess or OnFailure action's Context is not defined (resulting in a null value), during execution of the rule's action a NullReferenceException is thrown during the construction of the ActionContext instance.
While the builtin Actions require Context information, it is possible that a custom action would not. The action itself should be responsible for handling context information that is missing by detecting missing items within the context dictionary. The action's code should determine if an exception is the proper response.
RulesEngine/src/RulesEngine/Actions/ActionContext.cs
Line 19 in dc52989
Checking
context
fornull
or using a null-coalescing operator would solve this issue.The text was updated successfully, but these errors were encountered: