[MRM-1137] ensure error message is correct if upload size is violated

git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@756888 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Brett Porter 2009-03-21 07:38:36 +00:00
parent 3457a487f1
commit 566d5d73bb
1 changed files with 1 additions and 1 deletions

View File

@ -549,7 +549,7 @@ public class UploadAction
addActionError( "Please add a file to upload." );
}
if ( !VersionUtil.isVersion( version ) )
if ( version == null || !VersionUtil.isVersion( version ) )
{
addActionError( "Invalid version." );
}