Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/ikvm-fork.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjfrijters <jfrijters>2015-08-26 13:08:40 +0300
committerjfrijters <jfrijters>2015-08-26 13:08:40 +0300
commitb720ca0eaa1be1beee3f33089fa11119dd7a40b6 (patch)
treecc94e4924fa92eca5d566c82de04df15d723069c
parentbfc10b1cf33315d7a0e5bf349115ab4bbaee98be (diff)
Fix for #303. Don't crash when trying to get interfaces from type from missing assembly reference.
-rw-r--r--runtime/TypeWrapper.cs7
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);
}
}