summaryrefslogtreecommitdiffstats
path: root/src/DotNetOpenAuth/Configuration/HostNameOrRegexCollection.cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/DotNetOpenAuth/Configuration/HostNameOrRegexCollection.cs')
-rw-r--r--src/DotNetOpenAuth/Configuration/HostNameOrRegexCollection.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/DotNetOpenAuth/Configuration/HostNameOrRegexCollection.cs b/src/DotNetOpenAuth/Configuration/HostNameOrRegexCollection.cs
index 88a1615..c7d963b 100644
--- a/src/DotNetOpenAuth/Configuration/HostNameOrRegexCollection.cs
+++ b/src/DotNetOpenAuth/Configuration/HostNameOrRegexCollection.cs
@@ -64,7 +64,7 @@ namespace DotNetOpenAuth.Configuration {
/// </returns>
protected override object GetElementKey(ConfigurationElement element) {
Contract.Assume(element != null); // this should be Contract.Requires in base class.
- return ((HostNameElement)element).Name;
+ return ((HostNameElement)element).Name ?? string.Empty;
}
}
}