From: <tan...@us...> - 2003-01-21 14:28:12
|
Update of /cvsroot/openjms/openjms/src/main/org/exolab/jms/client In directory sc8-pr-cvs1:/tmp/cvs-serv25715/src/main/org/exolab/jms/client Modified Files: JmsTopicSubscriber.java Log Message: fixed NPE if subscriber closed twice Index: JmsTopicSubscriber.java =================================================================== RCS file: /cvsroot/openjms/openjms/src/main/org/exolab/jms/client/JmsTopicSubscriber.java,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** JmsTopicSubscriber.java 12 Oct 2001 07:55:31 -0000 1.7 --- JmsTopicSubscriber.java 21 Jan 2003 14:28:06 -0000 1.8 *************** *** 152,162 **** // overwrites of JmsMessageConsumer.close ! public void close() ! throws JMSException ! { ! // unregister this publisher from the session amd then call the base ! // class method. ! ((JmsTopicSession)_session).removeSubscriber(this); ! super.close(); } --- 152,162 ---- // overwrites of JmsMessageConsumer.close ! public void close() throws JMSException { ! if (_session != null) { ! // unregister this publisher from the session amd then call the ! // base class method. ! ((JmsTopicSession)_session).removeSubscriber(this); ! super.close(); ! } } |