diff options
author | Andrew Arnott <andrewarnott@gmail.com> | 2013-01-01 22:26:19 -0800 |
---|---|---|
committer | Andrew Arnott <andrewarnott@gmail.com> | 2013-01-01 22:26:41 -0800 |
commit | f9c615bc47d49457546d046b2cb326f93fd8f5e0 (patch) | |
tree | 9b9126f083fde2dbe755e033514f62631ed36a7b /src | |
parent | cf3170cf207ffa6776ccc07d4c143bd039b18025 (diff) | |
download | DotNetOpenAuth-f9c615bc47d49457546d046b2cb326f93fd8f5e0.zip DotNetOpenAuth-f9c615bc47d49457546d046b2cb326f93fd8f5e0.tar.gz DotNetOpenAuth-f9c615bc47d49457546d046b2cb326f93fd8f5e0.tar.bz2 |
Fixes KeyNotFoundException in logging.
Diffstat (limited to 'src')
-rw-r--r-- | src/DotNetOpenAuth.Core/Util.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/DotNetOpenAuth.Core/Util.cs b/src/DotNetOpenAuth.Core/Util.cs index 3babba5..26b7b45 100644 --- a/src/DotNetOpenAuth.Core/Util.cs +++ b/src/DotNetOpenAuth.Core/Util.cs @@ -111,7 +111,7 @@ namespace DotNetOpenAuth { foreach (var pair in pairs) { var key = pair.Key.ToString(); string value = pair.Value.ToString(); - if (messageDictionary != null && messageDictionary.Description.Mapping[key].IsSecuritySensitive) { + if (messageDictionary != null && messageDictionary.Description.Mapping.ContainsKey(key) && messageDictionary.Description.Mapping[key].IsSecuritySensitive) { value = "********"; } |