[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-pim
Subject: [Kde-pim] Crash in Kmail - kmheaders.cpp
From: me <kev.gilbert () cdu ! edu ! au>
Date: 2005-10-12 22:59:20
Message-ID: 200510130817.20378.kev.gilbert () cdu ! edu ! au
[Download RAW message or body]
[Attachment #2 (multipart/signed)]
Hi,
Just had a crash in KMail which was probably caused by a bad message. The following \
patch "ignores" the problem - perhaps there is a more appropriate action that could \
be taken.
--- kmheaders.cpp.orig 2005-10-13 08:12:28.000000000 +0930
+++ kmheaders.cpp 2005-10-13 07:57:01.000000000 +0930
@@ -2026,6 +2026,11 @@
int idx = item->msgId();
KMMessage *msg = mFolder->getMsg(idx);
+ if( msg == NULL )
+ { kdDebug( ) << "huh - null returned from mfolder->getMsg( " << idx << " )" << \
endl; + return;
+ }
+
if (!msg->transferInProgress())
{
emit activated(mFolder->getMsg(idx));
Cheers
Kevin
[Attachment #5 (application/pgp-signature)]
_______________________________________________
kde-pim mailing list
kde-pim@kde.org
https://mail.kde.org/mailman/listinfo/kde-pim
kde-pim home page at http://pim.kde.org/
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic