axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d...@apache.org
Subject cvs commit: xml-axis/java/src/org/apache/axis/wsdl/toJava JavaGeneratorFactory.java
Date Sat, 30 Nov 2002 03:56:02 GMT
dims        2002/11/29 19:56:02

  Modified:    java/src/org/apache/axis/wsdl/toJava
                        JavaGeneratorFactory.java
  Log:
  Added additional checks for null's.
  
  Revision  Changes    Path
  1.30      +7 -5      xml-axis/java/src/org/apache/axis/wsdl/toJava/JavaGeneratorFactory.java
  
  Index: JavaGeneratorFactory.java
  ===================================================================
  RCS file: /home/cvs/xml-axis/java/src/org/apache/axis/wsdl/toJava/JavaGeneratorFactory.java,v
  retrieving revision 1.29
  retrieving revision 1.30
  diff -u -r1.29 -r1.30
  --- JavaGeneratorFactory.java	10 Oct 2002 15:12:15 -0000	1.29
  +++ JavaGeneratorFactory.java	30 Nov 2002 03:56:02 -0000	1.30
  @@ -877,8 +877,10 @@
                                       "invalidNotif00", name));
                           }
                           else { // ONE_WAY or REQUEST_RESPONSE
  -                            parameters.signature = constructSignature( 
  -                                   parameters, name);
  +                            if (parameters != null) {
  +                                parameters.signature = constructSignature( 
  +                                       parameters, name);
  +                            }
                           }
                       }
                   }
  @@ -893,14 +895,14 @@
           String name = Utils.xmlNameToJava(opName);
   
           String ret = "void";
  -        if (parms.returnParam != null) {
  +        if (parms != null && parms.returnParam != null) {
               ret = Utils.getParameterTypeName(parms.returnParam);
           }
           String signature = "    public " + ret + " " + name + "(";
   
           boolean needComma = false;
   
  -        for (int i = 0; i < parms.list.size(); ++i) {
  +        for (int i = 0; parms!= null && i < parms.list.size(); ++i) {
               Parameter p = (Parameter) parms.list.get(i);
   
               if (needComma) {
  @@ -920,7 +922,7 @@
               }
           }
           signature = signature + ") throws java.rmi.RemoteException";
  -        if (parms.faults != null) {
  +        if (parms != null && parms.faults != null) {
               // Collect the list of faults into a single string, separated by commas.
               
               Iterator i = parms.faults.values().iterator();
  
  
  

Mime
View raw message