cvs commit: xml-axis-wsif/java/src/org/apache/wsif/util/jms WSIFJMSDestination.java
| Newsgroups | gmane.comp.apache.webservices.wsif.devel |
|---|---|
| Message-ID | <[email protected]> |
nmukhi 2003/06/19 12:14:04 Modified: java/src/org/apache/wsif/util/jms WSIFJMSDestination.java Log: Fixing bugzilla #20845: Invalid Exception handling within the WSIFJMSDestination.Send Method Fixed by first checking if sender is null prior to closing it. Thanks to [email protected] for reporting and suggesting fix. Revision Changes Path 1.18 +3 -2 xml-axis-wsif/java/src/org/apache/wsif/util/jms/WSIFJMSDestination.java Index: WSIFJMSDestination.java =================================================================== RCS file: /home/cvs/xml-axis-wsif/java/src/org/apache/wsif/util/jms/WSIFJMSDestination.java,v retrieving revision 1.17 retrieving revision 1.18 diff -u -r1.17 -r1.18 --- WSIFJMSDestination.java 31 Mar 2003 12:36:32 -0000 1.17 +++ WSIFJMSDestination.java 19 Jun 2003 19:14:03 -0000 1.18 @@ -325,7 +325,8 @@ // we get the default props next time. if (propsSet) { try { - sender.close(); + if (sender!=null) + sender.close(); } catch (JMSException e) { throw new WSIFException( "JMSException closing sender: " @@ -835,4 +836,4 @@ return jmsAddress; } -} \ No newline at end of file +}