[sip-comm-cvs] CVS update: /sip-communicator/src/net/java/sip/communicator/impl/gui/main/chat/ChatConversationPanel.java

yanas at dev.java.net yanas at dev.java.net
Mon Apr 16 17:50:22 CEST 2007


User: yanas   
Date: 2007-04-16 15:50:22+0000
Log:
 try to fix NullPointerException thrown while logging with MSN

File Changes:

Directory: /sip-communicator/src/net/java/sip/communicator/impl/gui/main/chat/
==============================================================================

File [changed]: ChatConversationPanel.java
Url: https://sip-communicator.dev.java.net/source/browse/sip-communicator/src/net/java/sip/communicator/impl/gui/main/chat/ChatConversationPanel.java?r1=1.1&r2=1.2
Delta lines:  +8 -6
-------------------
--- ChatConversationPanel.java	2007-03-12 17:38:30+0000	1.1
+++ ChatConversationPanel.java	2007-04-16 15:50:20+0000	1.2
@@ -385,10 +385,12 @@
             Element firstHeaderElement = this.document.getElement("header");
             Element firstMessageElement = this.document.getElement("message");
             try {
+                if(firstHeaderElement != null)
                 this.document.remove(firstHeaderElement.getStartOffset(),
                     firstHeaderElement.getEndOffset()
                         - firstHeaderElement.getStartOffset());
                 
+                if(firstMessageElement != null)
                 this.document.remove(firstMessageElement.getStartOffset(),
                     firstMessageElement.getEndOffset()
                         - firstMessageElement.getStartOffset());




---------------------------------------------------------------------
To unsubscribe, e-mail: cvs-unsubscribe at sip-communicator.dev.java.net
For additional commands, e-mail: cvs-help at sip-communicator.dev.java.net





More information about the commits mailing list