[linker] Ignore null type arguments in MarkWithResolvedScope
[mono.git] / mcs / tools / linker / Mono.Linker.Steps / MarkStep.cs
index 8525256e68fcca193352a79995e62a471dfd5f7b..d30f23a9c424d79721a760d8ab089b7a44659b0c 100644 (file)
@@ -288,6 +288,8 @@ namespace Mono.Linker.Steps {
                // even if we (just before saving) will resolve all type references (bug #26752)
                void MarkWithResolvedScope (TypeReference type)
                {
+                       if (type == null)
+                               return;
                        var td = type.Resolve ();
                        if (td != null)
                                type.Scope = td.Scope;