Skip to content

Commit

Permalink
Bug fix: Not passing _VFP fails tests due to null reference.
Browse files Browse the repository at this point in the history
  • Loading branch information
cwollenhaupt committed Jan 24, 2023
1 parent 41ca17d commit a0a9620
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion DotnetBridge/Utilities/EventSubscriber.cs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public EventSubscriber(object source, String prefix = "", dynamic vfp = null)
foreach (var ev in source.GetType().GetEvents())
{
// handler is a PRIVATE variable defined in EventSubscription.Setup().
Boolean hasMethod = vfp?.Eval($"PEMSTATUS(m.handler, '{prefix}{ev.Name}', 5)");
Boolean hasMethod = vfp?.Eval($"PEMSTATUS(m.handler, '{prefix}{ev.Name}', 5)") ?? true;
if (!hasMethod)
continue;

Expand Down

0 comments on commit a0a9620

Please sign in to comment.