Bug 74297 - Kmail crashes on load while holding down 's'
Summary: Kmail crashes on load while holding down 's'
Status: RESOLVED FIXED
Alias: None
Product: kmail
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR crash
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-02-05 23:49 UTC by Ron
Modified: 2007-09-14 12:17 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ron 2004-02-05 23:49:56 UTC
Version:            (using KDE Devel)
Installed from:    Compiled sources
OS:          Linux

If you hold down the 's' key while kmail loads it crashes. I am unable to generate a backtrace for this. I try and its just a bunch of ??'s.  All my kdepim libs and kmail has -g and debugging but my kde libs dont.  It should be reproducible though, it happens everytime.
Comment 1 Don Sanders 2004-02-06 05:39:55 UTC
Subject: kdepim/kmail

CVS commit by sanders: 

CCMAIL:74297-done@bugs.kde.org
Yes I can reproduce this, looks like a little folder storage regression.
Hopefully should be fixed now, thanks for your bug report Ron.


  M +3 -1      kmfldsearch.cpp   1.124


--- kdepim/kmail/kmfldsearch.cpp  #1.123:1.124
@@ -101,5 +101,7 @@ KMFldSearch::KMFldSearch(KMMainWidget* w
   mPatternEdit->setInsideMargin( 0 );
   mSearchPattern = new KMSearchPattern();
-  KMFolderSearch *searchFolder = dynamic_cast<KMFolderSearch*>(curFolder->storage());
+  KMFolderSearch *searchFolder = 0;
+  if (curFolder)
+      searchFolder = dynamic_cast<KMFolderSearch*>(curFolder->storage());
   if (searchFolder) {
       KConfig config(curFolder->location());