From kde-bugs-dist Wed Dec 24 02:28:55 2003 From: Don Sanders Date: Wed, 24 Dec 2003 02:28:55 +0000 To: kde-bugs-dist Subject: [Bug 71117] kmail crash on delete folder. X-MARC-Message: https://marc.info/?l=kde-bugs-dist&m=107223299828169 ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is. http://bugs.kde.org/show_bug.cgi?id=71117 don@sanders.org changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution| |FIXED ------- Additional Comments From don@sanders.org 2003-12-24 03:28 ------- Subject: kdepim/kmail CVS commit by sanders: Check KMFolder* folder is non null before use on line 283. Seems logical as folder may be null in the case of a deleted folder. Maybe fix bug 71117, please reopen if the problem reoccurs and the backtrace shows a problem in KMSearch::slotProcessNextBatch() again. CCMAIL:71117-done@bugs.kde.org Thanks Mathieu Jobin for the backtrace with full debug symbols. M +6 -4 kmfoldersearch.cpp 1.46 --- kdepim/kmail/kmfoldersearch.cpp #1.45:1.46 @@ -281,8 +281,10 @@ void KMSearch::slotProcessNextBatch() --mRemainingFolders; KMFolder *folder = *(mFolders.begin()); + if (folder) { if (folder->isSystemFolder()) mLastFolder = i18n(folder->name().utf8()); else mLastFolder = folder->name(); + } mFolders.erase(mFolders.begin()); if (folder) {