Skip to content

Commit

Permalink
Keys in property list dictionaries aren't necessarily unique. Fixes x…
Browse files Browse the repository at this point in the history
…amarin-macios#5277. (#39)

Fixes xamarin/xamarin-macios#5277.
  • Loading branch information
rolfbjarne authored Dec 17, 2018
1 parent 80498aa commit 2029b17
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Xamarin.MacDev/PListObject.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2025,8 +2025,10 @@ public override bool ReadDict (PDictionary dict)

ReadObjectHead ();
var result = ReadObject ();
if (result != null)
dict.Add (key, result);
if (result != null) {
// Keys are not required to be unique. The last entry wins.
dict [key] = result;
}

do {
if (reader.NodeType == XmlNodeType.Element && reader.Name == "key")
Expand Down

0 comments on commit 2029b17

Please sign in to comment.