[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    kdenetwork/kopete/protocols/msn
From:       Olivier Goffart <ogoffart () kde ! org>
Date:       2005-01-27 16:51:47
Message-ID: 20050127165147.767F71CF81 () office ! kde ! org
[Download RAW message or body]

CVS commit by ogoffart: 

Fix Bug 89818: kopete randomly crashes when a user sends files to me from msn

BUG: 89818


  M +8 -0      msnp2p.cpp   1.24


--- kdenetwork/kopete/protocols/msn/msnp2p.cpp  #1.23:1.24
@@ -762,4 +762,12 @@ void MSNP2PDisplatcher::parseMessage( Me
                                         c=kmm->account()->contacts()[m_msgHandle];
                         }
+                        if(!c)
+                        {
+                                // while the contact ptr shouldn't be needed, kopete \
crash if one pass a null contact. +                                //  cf  Bug 89818
+                                kdWarning(14140) << " impossible to get the contact \
for initiating file transfer " << endl; +                                error();
+                                return;
+                        }
                         disconnect(Kopete::TransferManager::transferManager(), 0L , \
                this, 0L);
                         connect(Kopete::TransferManager::transferManager() , \
SIGNAL(accepted(Kopete::Transfer*, const QString& )) ,


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic