Skip to content

Commit

Permalink
SOCIAL-1457: check for null on post input file.
Browse files Browse the repository at this point in the history
  • Loading branch information
galatrash committed Aug 21, 2013
1 parent 6144d56 commit 43e7a57
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion DNN Platform/Modules/Groups/Create.ascx.cs
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ private void Create_Click(object sender, EventArgs e)
roleInfo.Settings.Add("ReviewMembers", chkMemberApproved.Checked.ToString());

TestableRoleController.Instance.UpdateRoleSettings(roleInfo, true);
if (inpFile.PostedFile.ContentLength > 0)
if (inpFile.PostedFile != null && inpFile.PostedFile.ContentLength > 0)
{
IFileManager _fileManager = FileManager.Instance;
IFolderManager _folderManager = FolderManager.Instance;
Expand Down

0 comments on commit 43e7a57

Please sign in to comment.