From 566d5d73bb19b0117cbf6649b6c6b93c720eb24f Mon Sep 17 00:00:00 2001 From: Brett Porter Date: Sat, 21 Mar 2009 07:38:36 +0000 Subject: [PATCH] [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 --- .../java/org/apache/maven/archiva/web/action/UploadAction.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/archiva-modules/archiva-web/archiva-webapp/src/main/java/org/apache/maven/archiva/web/action/UploadAction.java b/archiva-modules/archiva-web/archiva-webapp/src/main/java/org/apache/maven/archiva/web/action/UploadAction.java index ac9282224..5813f484a 100644 --- a/archiva-modules/archiva-web/archiva-webapp/src/main/java/org/apache/maven/archiva/web/action/UploadAction.java +++ b/archiva-modules/archiva-web/archiva-webapp/src/main/java/org/apache/maven/archiva/web/action/UploadAction.java @@ -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." ); } -- 2.39.5