ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bode...@apache.org
Subject cvs commit: jakarta-ant/src/main/org/apache/tools/ant/taskdefs Manifest.java
Date Thu, 27 Jun 2002 06:46:44 GMT
bodewig     2002/06/26 23:46:44

  Modified:    src/main/org/apache/tools/ant/taskdefs Tag: ANT_15_BRANCH
                        Manifest.java
  Log:
  Fix NullPointerException like the one in ManifestTest#test10
  
  Revision  Changes    Path
  No                   revision
  
  
  No                   revision
  
  
  1.33.2.3  +3 -0      jakarta-ant/src/main/org/apache/tools/ant/taskdefs/Manifest.java
  
  Index: Manifest.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ant/src/main/org/apache/tools/ant/taskdefs/Manifest.java,v
  retrieving revision 1.33.2.2
  retrieving revision 1.33.2.3
  diff -u -r1.33.2.2 -r1.33.2.3
  --- Manifest.java	26 Jun 2002 14:28:54 -0000	1.33.2.2
  +++ Manifest.java	27 Jun 2002 06:46:44 -0000	1.33.2.3
  @@ -843,6 +843,9 @@
        */
       public void addConfiguredAttribute(Attribute attribute)
            throws ManifestException {
  +        if (attribute.getKey() == null || attribute.getValue() == null) {
  +            throw new BuildException("Attributes must have name and value");
  +        }
           if (attribute.getKey().equalsIgnoreCase(ATTRIBUTE_MANIFEST_VERSION)) {
               manifestVersion = attribute.getValue();
           } else {
  
  
  

--
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