Skip to content

Commit

Permalink
[Xamarin.MacDev] Fail gracefully if trying to grab a PList entry from…
Browse files Browse the repository at this point in the history
… a file that doesn't exist. (#86)

We run into this code path on Mac Catalyst.
  • Loading branch information
rolfbjarne authored Feb 11, 2021
1 parent fae0237 commit e7ec7ef
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Xamarin.MacDev/MacOSXSdk.cs
Original file line number Diff line number Diff line change
Expand Up @@ -270,6 +270,9 @@ public AppleDTSettings GetAppleDTSettings ()

static string GrabRootString (string file, string key)
{
if (!File.Exists (file))
return null;

var dict = PDictionary.FromFile (file);
PString value;

Expand Down

0 comments on commit e7ec7ef

Please sign in to comment.