From cd77df97dde8c04774510ae0d773358e7a188066 Mon Sep 17 00:00:00 2001 From: Joel Reed Date: Mon, 23 Jul 2007 17:03:23 -0400 Subject: [PATCH] bug.fix --- .../WorkstationSettings.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/class/Microsoft.TeamFoundation.VersionControl.Client/WorkstationSettings.cs b/class/Microsoft.TeamFoundation.VersionControl.Client/WorkstationSettings.cs index 1296ed9..2c5ca5c 100644 --- a/class/Microsoft.TeamFoundation.VersionControl.Client/WorkstationSettings.cs +++ b/class/Microsoft.TeamFoundation.VersionControl.Client/WorkstationSettings.cs @@ -52,6 +52,8 @@ internal class WorkstationSettings : SortedList if (reader.NodeType == XmlNodeType.Element && reader.Name == "add") { string key = reader.GetAttribute("key"); + if (!this.ContainsKey(key)) continue; + string value = reader.GetAttribute("value"); this[key] = Convert.ToBoolean(value); } -- 2.11.4.GIT