From b720ca0eaa1be1beee3f33089fa11119dd7a40b6 Mon Sep 17 00:00:00 2001 From: jfrijters Date: Wed, 26 Aug 2015 10:08:40 +0000 Subject: Fix for #303. Don't crash when trying to get interfaces from type from missing assembly reference. --- runtime/TypeWrapper.cs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/runtime/TypeWrapper.cs b/runtime/TypeWrapper.cs index 42ce443f..1afb52fe 100644 --- a/runtime/TypeWrapper.cs +++ b/runtime/TypeWrapper.cs @@ -3655,6 +3655,13 @@ namespace IKVM.Internal { get { +#if STATIC_COMPILER + if (missingType != null) + { + StaticCompiler.IssueMissingTypeMessage(missingType); + return TypeWrapper.EmptyArray; + } +#endif throw new InvalidOperationException("get_Interfaces called on UnloadableTypeWrapper: " + Name); } } -- cgit v1.2.3