Fixes: 25831 - Applied Patch

[TFS Changeset #78661]
This commit is contained in:
Shandem
2010-10-20 11:45:47 +00:00
parent 3e70a975bb
commit 82df347d41

View File

@@ -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 "";