diff options
author | Marius Ungureanu <marius.ungureanu@xamarin.com> | 2014-12-02 02:44:50 +0300 |
---|---|---|
committer | Marius Ungureanu <marius.ungureanu@xamarin.com> | 2014-12-02 02:45:30 +0300 |
commit | d73b3d380fe951d9e909d12acb3cccaddfab3aea (patch) | |
tree | 9d614d600e8c815f8062fe959226e105f780dfd1 /main/src/addins/WindowsPlatform | |
parent | a5b0e5242a1ade4cdabe75d3a1e801c9ce6d8b05 (diff) |
Bug 24829 - [Windows:Android Designer] Unable to open android designer file in XS on windows.
Mirrors Mac behaviour in case the file extension comes up as null.
Diffstat (limited to 'main/src/addins/WindowsPlatform')
-rw-r--r-- | main/src/addins/WindowsPlatform/WindowsPlatform/WindowsPlatform.cs | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/main/src/addins/WindowsPlatform/WindowsPlatform/WindowsPlatform.cs b/main/src/addins/WindowsPlatform/WindowsPlatform/WindowsPlatform.cs index c5c74fdf7f..abb8db19eb 100644 --- a/main/src/addins/WindowsPlatform/WindowsPlatform/WindowsPlatform.cs +++ b/main/src/addins/WindowsPlatform/WindowsPlatform/WindowsPlatform.cs @@ -115,7 +115,11 @@ namespace MonoDevelop.Platform protected override string OnGetMimeTypeForUri (string uri) { - string ext = Path.GetExtension (uri).ToLower (); + string ext = Path.GetExtension (uri); + if (ext == null) + return null; + + ext = ext.ToLower (); RegistryKey typeKey = Registry.ClassesRoot.OpenSubKey (ext, false); if (typeKey == null) |