bodewig     2003/08/05 08:40:56

  Modified:    src/main/org/apache/tools/ant Main.java
  Log:
  ant -Debug would cause a NullPointerException
  
  PR: 22065
  
  Revision  Changes    Path
  1.91      +3 -0      ant/src/main/org/apache/tools/ant/Main.java
  
  Index: Main.java
  ===================================================================
  RCS file: /home/cvs/ant/src/main/org/apache/tools/ant/Main.java,v
  retrieving revision 1.90
  retrieving revision 1.91
  diff -u -r1.90 -r1.91
  --- Main.java 4 Aug 2003 12:23:26 -0000       1.90
  +++ Main.java 5 Aug 2003 15:40:56 -0000       1.91
  @@ -378,6 +378,9 @@
                       name = name.substring(0, posEq);
                   } else if (i < args.length - 1) {
                       value = args[++i];
  +                } else {
  +                    throw new BuildException("Missing value for property "
  +                                             + name);
                   }
   
                   definedProps.put(name, value);
  
  
  

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

Reply via email to