From 82df347d41babdf5eb253c3ea3cad08ed2e6f7aa Mon Sep 17 00:00:00 2001 From: Shandem Date: Wed, 20 Oct 2010 11:45:47 +0000 Subject: [PATCH] Fixes: 25831 - Applied Patch [TFS Changeset #78661] --- components/editorControls/uploadfield/uploadField.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/editorControls/uploadfield/uploadField.cs b/components/editorControls/uploadfield/uploadField.cs index 4d81909ea4..397fdd5b16 100644 --- a/components/editorControls/uploadfield/uploadField.cs +++ b/components/editorControls/uploadfield/uploadField.cs @@ -54,7 +54,7 @@ namespace umbraco.editorControls get { string tempText = Text; - bool isEmpty = String.IsNullOrEmpty(this.PostedFile.FileName); + bool isEmpty = this.PostedFile == null || String.IsNullOrEmpty(this.PostedFile.FileName); // checkbox, if it's used the file will be deleted and we should throw a validation error if (Page.Request[this.ClientID + "clear"] != null && Page.Request[this.ClientID + "clear"].ToString() != "") return "";