From 845db9ab08d38320ec243e9a5a79d74998bb9be3 Mon Sep 17 00:00:00 2001 From: Nytra <14206961+Nytra@users.noreply.github.com> Date: Mon, 23 Dec 2024 13:32:58 +0000 Subject: [PATCH] Fix null exception --- .../UI/Tooltips/ButtonDelegateTooltipResolver.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/MonkeyLoader.Resonite.Integration/UI/Tooltips/ButtonDelegateTooltipResolver.cs b/MonkeyLoader.Resonite.Integration/UI/Tooltips/ButtonDelegateTooltipResolver.cs index f0c1531..29ad653 100644 --- a/MonkeyLoader.Resonite.Integration/UI/Tooltips/ButtonDelegateTooltipResolver.cs +++ b/MonkeyLoader.Resonite.Integration/UI/Tooltips/ButtonDelegateTooltipResolver.cs @@ -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}";