summaryrefslogtreecommitdiffstats
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:19 -0800
commit1d79ff0a8b58b18636d91eadbed6504270a524fd (patch)
tree807fdb45868c0e89dfb0e160e202c6330350a18b
parentfc058746ed3119ed2add8fcfb5d61bb39a9c9368 (diff)
downloadDotNetOpenAuth-1d79ff0a8b58b18636d91eadbed6504270a524fd.zip
DotNetOpenAuth-1d79ff0a8b58b18636d91eadbed6504270a524fd.tar.gz
DotNetOpenAuth-1d79ff0a8b58b18636d91eadbed6504270a524fd.tar.bz2
Fixes KeyNotFoundException in logging.
-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 ff91df1..d4204a0 100644
--- a/src/DotNetOpenAuth.Core/Util.cs
+++ b/src/DotNetOpenAuth.Core/Util.cs
@@ -123,7 +123,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 = "********";
}