axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From whitl...@apache.org
Subject cvs commit: xml-axis-wsif/java/src/org/apache/wsif/providers/jms WSIFOperation_Jms.java
Date Fri, 27 Sep 2002 09:03:17 GMT
whitlock    2002/09/27 02:03:17

  Modified:    java/src/org/apache/wsif/providers/jms
                        WSIFOperation_Jms.java
  Log:
  Remove throwing, catching and ignoring NullPointerExceptions from mainline code
  
  Revision  Changes    Path
  1.27      +6 -12     xml-axis-wsif/java/src/org/apache/wsif/providers/jms/WSIFOperation_Jms.java
  
  Index: WSIFOperation_Jms.java
  ===================================================================
  RCS file: /home/cvs/xml-axis-wsif/java/src/org/apache/wsif/providers/jms/WSIFOperation_Jms.java,v
  retrieving revision 1.26
  retrieving revision 1.27
  diff -u -r1.26 -r1.27
  --- WSIFOperation_Jms.java	26 Sep 2002 09:03:13 -0000	1.26
  +++ WSIFOperation_Jms.java	27 Sep 2002 09:03:16 -0000	1.27
  @@ -658,19 +658,13 @@
           if (fieldOperation == null) {
               // <input> and <output> tags in binding operations are not mandatory
               // so deal with null BindingInputs or BindingOutputs
  -            try {
  -                fieldInputMessageName = fieldBindingOperation.getBindingInput().getName();
  -            } catch (NullPointerException e) {
  -              	Trc.exception(e);
  -                fieldInputMessageName = null;
  -            }
  +            if (fieldBindingOperation.getBindingInput() != null)
  +                fieldInputMessageName =
  +                    fieldBindingOperation.getBindingInput().getName();
   
  -            try {
  -                fieldOutputMessageName = fieldBindingOperation.getBindingOutput().getName();
  -            } catch (NullPointerException e) {
  -              	Trc.exception(e);
  -                fieldOutputMessageName = null;
  -            }
  +            if (fieldBindingOperation.getBindingOutput() != null)
  +                fieldOutputMessageName =
  +                    fieldBindingOperation.getBindingOutput().getName();
   
               // Get operation
               fieldOperation =
  
  
  

Mime
View raw message