From fcf25bea84adf7c1db1739ff4df2464856d1e0ea Mon Sep 17 00:00:00 2001 From: Gabriel Garcia Date: Wed, 8 Apr 2015 10:48:16 -0400 Subject: [PATCH] Check for missing Assembly.Location --- mcs/class/corlib/System.Reflection/Assembly.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/mcs/class/corlib/System.Reflection/Assembly.cs b/mcs/class/corlib/System.Reflection/Assembly.cs index ad50e600bbb..0bba65f4693 100644 --- a/mcs/class/corlib/System.Reflection/Assembly.cs +++ b/mcs/class/corlib/System.Reflection/Assembly.cs @@ -514,6 +514,9 @@ namespace System.Reflection { // ignore } + if (String.IsNullOrEmpty (Location)) + return null; + // Try the assembly directory string location = Path.GetDirectoryName (Location); string fullName = Path.Combine (location, Path.Combine (culture.Name, an.Name + ".dll")); -- 2.25.1