Skip to content

Commit

Permalink
Fix null exception
Browse files Browse the repository at this point in the history
  • Loading branch information
Nytra authored and Banane9 committed Dec 23, 2024
1 parent 0047e56 commit efe5b15
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@ protected override void Handle(ResolveTooltipLabelEvent eventData)
return;
}

if (pressed.Method is null) return;

var targetType = pressed.Method.GetMethodInfo().DeclaringType;
var localeKey = $"Tooltip.{targetType.Name}.{pressed.MethodName}";

Expand Down

0 comments on commit efe5b15

Please sign in to comment.