We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 15af469 commit b1eceddCopy full SHA for b1ecedd
src/WinRT.Runtime/ComWrappersSupport.cs
@@ -650,7 +650,8 @@ internal static Type GetRuntimeClassForTypeCreation(IInspectable inspectable, Ty
650
// isn't already added. On JIT, we can construct it at runtime.
651
if (!RuntimeFeature.IsDynamicCodeCompiled)
652
{
653
- if (implementationType.IsInterface &&
+ if (implementationType != null &&
654
+ implementationType.IsInterface &&
655
implementationType.IsGenericType &&
656
!TypedObjectFactoryCacheForType.ContainsKey(implementationType))
657
0 commit comments