PR Feedback
authorSantiago Fernandez Madero <safern@microsoft.com>
Fri, 12 Apr 2019 23:13:27 +0000 (16:13 -0700)
committerSantiago Fernandez Madero <safern@microsoft.com>
Fri, 12 Apr 2019 23:13:27 +0000 (16:13 -0700)
Commit migrated from https://github.com/dotnet/coreclr/commit/c55ffed9df185ac568eb300794b771daa9711c58

src/libraries/System.Private.CoreLib/src/System/Runtime/Loader/AssemblyLoadContext.cs

index 038a076..714f463 100644 (file)
@@ -511,7 +511,7 @@ namespace System.Runtime.Loader
         public static ContextualReflectionScope EnterContextualReflection(Assembly? activating)
         {
             return activating != null ?
-                GetLoadContext(activating)?.EnterContextualReflection() ?? default :
+                GetLoadContext(activating)!.EnterContextualReflection() : // TODO-NULLABLE: https://github.com/dotnet/coreclr/issues/23952
                 new ContextualReflectionScope(null);
         }