axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gdani...@apache.org
Subject cvs commit: xml-axis/java/src/org/apache/axis/wsdl/fromJava Emitter.java
Date Wed, 02 Jan 2002 21:20:28 GMT
gdaniels    02/01/02 13:20:28

  Modified:    java/src/org/apache/axis/wsdl/fromJava Emitter.java
  Log:
  Fix NPE when generating WSDL.
  
  Revision  Changes    Path
  1.7       +6 -4      xml-axis/java/src/org/apache/axis/wsdl/fromJava/Emitter.java
  
  Index: Emitter.java
  ===================================================================
  RCS file: /home/cvs/xml-axis/java/src/org/apache/axis/wsdl/fromJava/Emitter.java,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- Emitter.java	2 Jan 2002 20:30:03 -0000	1.6
  +++ Emitter.java	2 Jan 2002 21:20:28 -0000	1.7
  @@ -880,10 +880,12 @@
        * @param allowedMethods a space separated list of methods to export
        */
       public void setAllowedMethods(String text) {
  -        StringTokenizer tokenizer = new StringTokenizer(text, " ,+");
  -        allowedMethods = new Vector();
  -        while (tokenizer.hasMoreTokens()) {
  -            allowedMethods.add(tokenizer.nextToken());
  +        if (text != null) {
  +            StringTokenizer tokenizer = new StringTokenizer(text, " ,+");
  +            allowedMethods = new Vector();
  +            while (tokenizer.hasMoreTokens()) {
  +                allowedMethods.add(tokenizer.nextToken());
  +            }
           }
       }
       
  
  
  

Mime
View raw message