forward port SVN commit 536616 by tilladam:

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

svn path=/trunk/KDE/kdepim/; revision=536724
wilder-work
Allen Winter 20 years ago
parent d796bc69f4
commit 903b9e5a97
  1. 6
      imapjob.cpp

@ -281,15 +281,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