diff --git a/Source/Client/Debug/DebugActions.cs b/Source/Client/Debug/DebugActions.cs index 0757165f..654216e4 100644 --- a/Source/Client/Debug/DebugActions.cs +++ b/Source/Client/Debug/DebugActions.cs @@ -302,8 +302,8 @@ public static void SaveHashes() // We only care about transpiled methods that aren't part of MP. var query = Multiplayer.harmony.GetPatchedMethods() - .Where(m => !m.DeclaringType.Namespace.StartsWith("Multiplayer") && - !Harmony.GetPatchInfo(m).Transpilers.NullOrEmpty()); + .Where(m => !(m.DeclaringType.Namespace?.StartsWith("Multiplayer") ?? false) + && !Harmony.GetPatchInfo(m).Transpilers.NullOrEmpty()); foreach (var method in query) { builder.Append(GetMethodHash(method));