]> source.dussan.org Git - archiva.git/commitdiff
[MRM-1137] ensure error message is correct if upload size is violated
authorBrett Porter <brett@apache.org>
Sat, 21 Mar 2009 07:38:36 +0000 (07:38 +0000)
committerBrett Porter <brett@apache.org>
Sat, 21 Mar 2009 07:38:36 +0000 (07:38 +0000)
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@756888 13f79535-47bb-0310-9956-ffa450edef68

archiva-modules/archiva-web/archiva-webapp/src/main/java/org/apache/maven/archiva/web/action/UploadAction.java

index ac92822244635fdcd58b9bdbd49a50a3552d95d5..5813f484abacab8f386f6f3a617a792f63d67927 100644 (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." );
             }