Skip to content
This repository has been archived by the owner on Oct 16, 2024. It is now read-only.

Commit

Permalink
Dereference of a possibly null reference got me acting up
Browse files Browse the repository at this point in the history
misandrie committed Nov 9, 2023
1 parent ee44f57 commit 38118a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Marsey/Utility.cs
Original file line number Diff line number Diff line change
@@ -41,6 +41,6 @@ public static void SetupLogger(Assembly patch)

Delegate logDelegate = Delegate.CreateDelegate(logDelegateType, null, logMethod);

marseyLoggerType.GetField("logDelegate", BindingFlags.Public | BindingFlags.Static).SetValue(null, logDelegate);
marseyLoggerType.GetField("logDelegate", BindingFlags.Public | BindingFlags.Static)!.SetValue(null, logDelegate);
}
}

0 comments on commit 38118a7

Please sign in to comment.