maven-scm-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ken...@apache.org
Subject svn commit: r454658 - /maven/scm/trunk/maven-scm-api/src/main/java/org/apache/maven/scm/repository/ScmRepositoryException.java
Date Tue, 10 Oct 2006 08:13:12 GMT
Author: kenney
Date: Tue Oct 10 01:13:11 2006
New Revision: 454658

URL: http://svn.apache.org/viewvc?view=rev&rev=454658
Log:
PR: SCM-242

Fix NPE due to assumption that ScmRepositoryException.getValidationMessages() != null.

Modified:
    maven/scm/trunk/maven-scm-api/src/main/java/org/apache/maven/scm/repository/ScmRepositoryException.java

Modified: maven/scm/trunk/maven-scm-api/src/main/java/org/apache/maven/scm/repository/ScmRepositoryException.java
URL: http://svn.apache.org/viewvc/maven/scm/trunk/maven-scm-api/src/main/java/org/apache/maven/scm/repository/ScmRepositoryException.java?view=diff&rev=454658&r1=454657&r2=454658
==============================================================================
--- maven/scm/trunk/maven-scm-api/src/main/java/org/apache/maven/scm/repository/ScmRepositoryException.java
(original)
+++ maven/scm/trunk/maven-scm-api/src/main/java/org/apache/maven/scm/repository/ScmRepositoryException.java
Tue Oct 10 01:13:11 2006
@@ -18,6 +18,7 @@
 
 import org.apache.maven.scm.ScmException;
 
+import java.util.Collections;
 import java.util.List;
 
 /**
@@ -27,7 +28,7 @@
 public class ScmRepositoryException
     extends ScmException
 {
-    private List validationMessages;
+    private List validationMessages = Collections.EMPTY_LIST;
 
     public ScmRepositoryException( String msg )
     {



Mime
View raw message