diff options
author | Andrew Arnott <andrewarnott@gmail.com> | 2009-04-16 07:17:59 -0700 |
---|---|---|
committer | Andrew Arnott <andrewarnott@gmail.com> | 2009-04-16 07:17:59 -0700 |
commit | 0cf61f17c975511d56e5584a8da4f1afec250143 (patch) | |
tree | 55b5e11ca362188a1cf31ac39059a8a703e9ed9b /src | |
parent | 89cc32e99df0fefa153a6450ec333cf5e29b4a82 (diff) | |
download | DotNetOpenAuth-0cf61f17c975511d56e5584a8da4f1afec250143.zip DotNetOpenAuth-0cf61f17c975511d56e5584a8da4f1afec250143.tar.gz DotNetOpenAuth-0cf61f17c975511d56e5584a8da4f1afec250143.tar.bz2 |
Fixed NullReferenceException in OpenIdAjaxTextBox when expected extensions are not found in the response.v3.0.0.9106
Diffstat (limited to 'src')
-rw-r--r-- | src/DotNetOpenAuth/OpenId/RelyingParty/OpenIdAjaxTextBox.cs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/DotNetOpenAuth/OpenId/RelyingParty/OpenIdAjaxTextBox.cs b/src/DotNetOpenAuth/OpenId/RelyingParty/OpenIdAjaxTextBox.cs index 561706a..bb3e49b 100644 --- a/src/DotNetOpenAuth/OpenId/RelyingParty/OpenIdAjaxTextBox.cs +++ b/src/DotNetOpenAuth/OpenId/RelyingParty/OpenIdAjaxTextBox.cs @@ -1298,6 +1298,9 @@ if (!openidbox.dnoi_internal.onSubmit()) {{ return false; }} this.OnUnconfirmedPositiveAssertion(); foreach (var pair in this.clientScriptExtensions) { IClientScriptExtensionResponse extension = (IClientScriptExtensionResponse)authResponse.GetExtension(pair.Key); + if (extension == null) { + continue; + } var positiveResponse = (PositiveAuthenticationResponse)authResponse; string js = extension.InitializeJavaScriptData(positiveResponse.Response); if (string.IsNullOrEmpty(js)) { |