diff --git a/runtime/ClassLoaderWrapper.cs b/runtime/ClassLoaderWrapper.cs index eb158b9a..3c9f2d19 100644 --- a/runtime/ClassLoaderWrapper.cs +++ b/runtime/ClassLoaderWrapper.cs @@ -200,7 +200,7 @@ namespace IKVM.Internal internal TypeWrapper RegisterInitiatingLoader(TypeWrapper tw) { - if(tw.IsUnloadable || tw.IsPrimitive) + if(tw == null || tw.IsUnloadable || tw.IsPrimitive) return tw; lock(types.SyncRoot)