diff options
author | jfrijters <jfrijters> | 2015-08-26 13:08:40 +0300 |
---|---|---|
committer | jfrijters <jfrijters> | 2015-08-26 13:08:40 +0300 |
commit | b720ca0eaa1be1beee3f33089fa11119dd7a40b6 (patch) | |
tree | cc94e4924fa92eca5d566c82de04df15d723069c | |
parent | bfc10b1cf33315d7a0e5bf349115ab4bbaee98be (diff) |
Fix for #303. Don't crash when trying to get interfaces from type from missing assembly reference.
-rw-r--r-- | runtime/TypeWrapper.cs | 7 |
1 files changed, 7 insertions, 0 deletions
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); } } |