Skip to content

Commit

Permalink
fix(html_custom_event): Fixed a hard-coded exception when processing …
Browse files Browse the repository at this point in the history
…custom html events. Was visible mostly when more than one handler was registered on the same event.

This is a fix for #5721
  • Loading branch information
carldebilly committed Apr 19, 2021
1 parent 61c171c commit 3368739
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,7 @@ private static object RaiseHtmlCustomEventHandler(Delegate d, object sender, obj
if (d is EventHandler<HtmlCustomEventArgs> handler && args is HtmlCustomEventArgs eventArgs)
{
handler(sender, eventArgs);
return default;
}

throw new InvalidOperationException($"The parameters {args ?? "<null>"} for invoking GenericEventHandlers.RaiseEventHandler with {d} from {sender ?? "<null>"} are incorrect");
Expand Down

0 comments on commit 3368739

Please sign in to comment.