summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAndrew Arnott <andrewarnott@gmail.com>2013-01-01 22:26:19 -0800
committerAndrew Arnott <andrewarnott@gmail.com>2013-01-01 22:26:41 -0800
commitf9c615bc47d49457546d046b2cb326f93fd8f5e0 (patch)
tree9b9126f083fde2dbe755e033514f62631ed36a7b /src
parentcf3170cf207ffa6776ccc07d4c143bd039b18025 (diff)
downloadDotNetOpenAuth-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.cs2
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 = "********";
}