diff options
author | Andrew Arnott <andrewarnott@gmail.com> | 2010-06-17 13:48:25 -0700 |
---|---|---|
committer | Andrew Arnott <andrewarnott@gmail.com> | 2010-06-17 13:48:25 -0700 |
commit | d175cbf7b629fa5f213ad47c79963c52f138dd9b (patch) | |
tree | 3cce857b42a373fcfcbdcd16b8627059ca4c7f6d | |
parent | 81a5d7bd069fd0d0360044e51338b059670394f7 (diff) | |
download | DotNetOpenAuth-d175cbf7b629fa5f213ad47c79963c52f138dd9b.zip DotNetOpenAuth-d175cbf7b629fa5f213ad47c79963c52f138dd9b.tar.gz DotNetOpenAuth-d175cbf7b629fa5f213ad47c79963c52f138dd9b.tar.bz2 |
Fixed NullReferenceException that can occur.
-rw-r--r-- | src/DotNetOpenAuth/OpenId/RelyingParty/OpenIdLogin.cs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/DotNetOpenAuth/OpenId/RelyingParty/OpenIdLogin.cs b/src/DotNetOpenAuth/OpenId/RelyingParty/OpenIdLogin.cs index 1316c30..c1e412b 100644 --- a/src/DotNetOpenAuth/OpenId/RelyingParty/OpenIdLogin.cs +++ b/src/DotNetOpenAuth/OpenId/RelyingParty/OpenIdLogin.cs @@ -955,6 +955,7 @@ idselector_input_id = '" + this.ClientID + @"'; /// Sets child control properties that depend on this control's ID. /// </summary> private void SetChildControlReferenceIds() { + this.EnsureChildControls(); this.EnsureID(); ErrorUtilities.VerifyInternal(!string.IsNullOrEmpty(this.ID), "No control ID available yet!"); this.requiredValidator.ControlToValidate = this.ID; |