owenb       2002/07/01 05:31:36

  Modified:    java/src/org/apache/wsif/providers/java
                        WSIFOperation_Java.java
  Log:
  When creating arrays of method, constructors or output names, if none exist
  then create zero length arrays rather than use null to avoid null pointer exceptions
  
  Revision  Changes    Path
  1.7       +5 -2      
xml-axis-wsif/java/src/org/apache/wsif/providers/java/WSIFOperation_Java.java
  
  Index: WSIFOperation_Java.java
  ===================================================================
  RCS file: 
/home/cvs/xml-axis-wsif/java/src/org/apache/wsif/providers/java/WSIFOperation_Java.java,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- WSIFOperation_Java.java   1 Jul 2002 08:48:26 -0000       1.6
  +++ WSIFOperation_Java.java   1 Jul 2002 12:31:36 -0000       1.7
  @@ -275,7 +275,7 @@
               }
               return candidates;
           }
  -        return null;
  +        return new Constructor[0];
       }
   
       protected Map getFaultMessageInfos() throws WSIFException {
  @@ -416,7 +416,7 @@
                   }
                   return candidates;
               }
  -            return null;
  +            return new Method[0];
           } catch (WSIFException ex) {
               throw ex;
           } catch (Exception ex) {
  @@ -681,7 +681,10 @@
                   for (int i = 0; i < argNames.size(); i++) {
                       fieldOutParameterNames[i] = (String) argNames.get(i);
                   }
  +            } else {
  +             fieldOutParameterNames = new String[0];
               }
  +            
           } catch (Exception ex) {
               throw new WSIFException(
                   "Error while determining signature of method "
  
  
  


Reply via email to