[linker] Ignore null type arguments in MarkWithResolvedScope
authorSebastien Pouliot <sebastien@xamarin.com>
Wed, 11 Feb 2015 14:01:35 +0000 (09:01 -0500)
committerSebastien Pouliot <sebastien@xamarin.com>
Wed, 11 Feb 2015 14:01:35 +0000 (09:01 -0500)
It's ignored in MarkType but it breaks calling Resolve in this case

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;