diff options
author | Andrew Arnott <andrewarnott@gmail.com> | 2009-08-07 08:03:35 -0700 |
---|---|---|
committer | Andrew Arnott <andrewarnott@gmail.com> | 2009-08-07 08:03:35 -0700 |
commit | 384f5a0e7a3e02fb1ded7dfbb8f44d039c0c8258 (patch) | |
tree | cc3d0a0e8cb3e563b86f93d458dd9391a03f72c9 | |
parent | 80dfb94652ca9b0207026de87917885329e40ac5 (diff) | |
download | DotNetOpenAuth-384f5a0e7a3e02fb1ded7dfbb8f44d039c0c8258.zip DotNetOpenAuth-384f5a0e7a3e02fb1ded7dfbb8f44d039c0c8258.tar.gz DotNetOpenAuth-384f5a0e7a3e02fb1ded7dfbb8f44d039c0c8258.tar.bz2 |
Fixed NullReferenceException in OpenIdTextBox.Text property getter.
-rw-r--r-- | src/DotNetOpenAuth/OpenId/RelyingParty/OpenIdTextBox.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/DotNetOpenAuth/OpenId/RelyingParty/OpenIdTextBox.cs b/src/DotNetOpenAuth/OpenId/RelyingParty/OpenIdTextBox.cs index 2dca459..b10fdb1 100644 --- a/src/DotNetOpenAuth/OpenId/RelyingParty/OpenIdTextBox.cs +++ b/src/DotNetOpenAuth/OpenId/RelyingParty/OpenIdTextBox.cs @@ -277,7 +277,7 @@ namespace DotNetOpenAuth.OpenId.RelyingParty { [Bindable(true), DefaultValue(""), Category(AppearanceCategory)] [Description("The content of the text box.")] public string Text { - get { return this.Identifier.OriginalString; } + get { return this.Identifier != null ? this.Identifier.OriginalString : string.Empty; } set { this.Identifier = value; } } |