Check for missing Assembly.Location
authorGabriel Garcia <garciat@live.com>
Wed, 8 Apr 2015 14:48:16 +0000 (10:48 -0400)
committerGabriel Garcia <garciat@live.com>
Wed, 8 Apr 2015 14:48:16 +0000 (10:48 -0400)
mcs/class/corlib/System.Reflection/Assembly.cs

index ad50e600bbb7a7c4024adb7285023a5bc8ea8444..0bba65f4693a630934df471360618a9d26b4b2f7 100644 (file)
@@ -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"));