avalon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mcconn...@apache.org
Subject cvs commit: avalon-sandbox/merlin/assembly/src/java/org/apache/avalon/assembly/repository/impl FileRepository.java
Date Sun, 29 Jun 2003 02:14:18 GMT
mcconnell    2003/06/28 19:14:18

  Modified:    merlin/assembly/src/java/org/apache/avalon/assembly/repository/impl
                        FileRepository.java
  Log:
  Correct a small but significant bug in the repository.
  
  Revision  Changes    Path
  1.7       +15 -2     avalon-sandbox/merlin/assembly/src/java/org/apache/avalon/assembly/repository/impl/FileRepository.java
  
  Index: FileRepository.java
  ===================================================================
  RCS file: /home/cvs/avalon-sandbox/merlin/assembly/src/java/org/apache/avalon/assembly/repository/impl/FileRepository.java,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- FileRepository.java	27 Jun 2003 23:18:34 -0000	1.6
  +++ FileRepository.java	29 Jun 2003 02:14:18 -0000	1.7
  @@ -279,6 +279,19 @@
         final String group, final String name, final String version, final String type )
         throws RepositoryException
       {
  +        if( group == null )
  +        {
  +            throw new NullPointerException( "group" );
  +        }
  +        if( name == null )
  +        {
  +            throw new NullPointerException( "name" );
  +        }
  +        if( type == null )
  +        {
  +            throw new NullPointerException( "type" );
  +        }
  +
           String path = group + "/" + type + "s/" + name;
           if( ( version != null ) && ( version.length() != 0 ) ) 
           {
  @@ -290,7 +303,7 @@
           RepositoryException repositoryException = null;
           try
           {
  -            getLocalArtifact( group, name, version, type );
  +            return getLocalArtifact( group, name, version, type );
           }
           catch( RepositoryException e )
           {
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: cvs-unsubscribe@avalon.apache.org
For additional commands, e-mail: cvs-help@avalon.apache.org


Mime
View raw message