summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Arnott <andrewarnott@gmail.com>2010-06-17 13:48:25 -0700
committerAndrew Arnott <andrewarnott@gmail.com>2010-06-17 13:48:25 -0700
commitd175cbf7b629fa5f213ad47c79963c52f138dd9b (patch)
tree3cce857b42a373fcfcbdcd16b8627059ca4c7f6d
parent81a5d7bd069fd0d0360044e51338b059670394f7 (diff)
downloadDotNetOpenAuth-d175cbf7b629fa5f213ad47c79963c52f138dd9b.zip
DotNetOpenAuth-d175cbf7b629fa5f213ad47c79963c52f138dd9b.tar.gz
DotNetOpenAuth-d175cbf7b629fa5f213ad47c79963c52f138dd9b.tar.bz2
Fixed NullReferenceException that can occur.
-rw-r--r--src/DotNetOpenAuth/OpenId/RelyingParty/OpenIdLogin.cs1
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;