Found a core file that had a null pointer dereference there.

svn path=/branches/KDE/3.5/kdepim/; revision=536616
wilder-work
Till Adam 20 years ago
parent 32e635d820
commit 4ed594e25e
  1. 6
      imapjob.cpp

@ -275,15 +275,15 @@ ImapJob::~ImapJob()
void ImapJob::slotGetNextMessage()
{
KMMessage *msg = mMsgList.first();
KMFolderImap *msgParent = static_cast<KMFolderImap*>(msg->storage());
KMAcctImap *account = msgParent->account();
if ( msg->UID() == 0 )
KMFolderImap *msgParent = msg ? static_cast<KMFolderImap*>(msg->storage()) : 0;
if ( msg->UID() == 0 || !msgParent )
{
// broken message
emit messageRetrieved( 0 );
deleteLater();
return;
}
KMAcctImap *account = msgParent->account();
KURL url = account->getUrl();
QString path = msgParent->imapPath() + ";UID=" + QString::number(msg->UID());
ImapAccountBase::jobData jd;

Loading…
Cancel
Save