diff --git a/src/WinRT.Runtime/ComWrappersSupport.cs b/src/WinRT.Runtime/ComWrappersSupport.cs index 6f78b5f8e..e7d5a721f 100644 --- a/src/WinRT.Runtime/ComWrappersSupport.cs +++ b/src/WinRT.Runtime/ComWrappersSupport.cs @@ -650,7 +650,8 @@ internal static Type GetRuntimeClassForTypeCreation(IInspectable inspectable, Ty // isn't already added. On JIT, we can construct it at runtime. if (!RuntimeFeature.IsDynamicCodeCompiled) { - if (implementationType.IsInterface && + if (implementationType != null && + implementationType.IsInterface && implementationType.IsGenericType && !TypedObjectFactoryCacheForType.ContainsKey(implementationType)) {