dion        2003/07/29 22:02:04

  Modified:    src/java/org/apache/maven/jelly/tags/maven AddPathTag.java
  Log:
  Better error message when the path with a given id doesn't exist
  
  Revision  Changes    Path
  1.9       +5 -1      maven/src/java/org/apache/maven/jelly/tags/maven/AddPathTag.java
  
  Index: AddPathTag.java
  ===================================================================
  RCS file: 
/home/cvs/maven/src/java/org/apache/maven/jelly/tags/maven/AddPathTag.java,v
  retrieving revision 1.8
  retrieving revision 1.9
  diff -u -r1.8 -r1.9
  --- AddPathTag.java   28 Jul 2003 04:06:17 -0000      1.8
  +++ AddPathTag.java   30 Jul 2003 05:02:04 -0000      1.9
  @@ -110,6 +110,10 @@
           }
   
           Path path = (Path) project.getReferences().get( getId() );
  +        if (path == null)
  +        {
  +            throw new JellyTagException( "path with specified id was not found" );
  +        }
   
           Path addPath;
           if ( getRefid() != null )
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to