ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dona...@apache.org
Subject cvs commit: jakarta-ant/proposal/myrmidon/src/java/org/apache/antlib/extensions JarLibManifestTask.java
Date Sat, 06 Apr 2002 04:26:54 GMT
donaldp     02/04/05 20:26:54

  Modified:    proposal/myrmidon/src/java/org/apache/antlib/extensions
                        JarLibManifestTask.java
  Log:
  Avoid null pointer by checking to make sure extension is non-null before adding it to manifest
  
  Revision  Changes    Path
  1.4       +4 -1      jakarta-ant/proposal/myrmidon/src/java/org/apache/antlib/extensions/JarLibManifestTask.java
  
  Index: JarLibManifestTask.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ant/proposal/myrmidon/src/java/org/apache/antlib/extensions/JarLibManifestTask.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- JarLibManifestTask.java	6 Apr 2002 04:25:49 -0000	1.3
  +++ JarLibManifestTask.java	6 Apr 2002 04:26:54 -0000	1.4
  @@ -184,7 +184,10 @@
   
           appendExtraAttributes( attributes );
   
  -        Extension.addExtension( m_extension, attributes );
  +        if( null != m_extension )
  +        {
  +            Extension.addExtension( m_extension, attributes );
  +        }
   
           //Add all the dependency data to manifest for dependencies
           final ArrayList depends = toExtensions( m_dependencies );
  
  
  

--
To unsubscribe, e-mail:   <mailto:ant-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-dev-help@jakarta.apache.org>


Mime
View raw message