KHTMLView::mouseMoveEvent crash

Martin Koller kollix at aon.at
Thu Jun 23 19:31:17 BST 2011


Hi,

in bug https://bugs.kde.org/show_bug.cgi?id=251643 it seems that the member
m_part can be a 0-pointer.

#5  KHTMLPart::xmlDocImpl (this=0x0) at ../../khtml/khtml_part.cpp:1667
#6  0x00007fe32c8781ce in KHTMLView::mouseMoveEvent (this=0x2906520,
_mouse=0x7fffadd20b00) at ../../khtml/khtmlview.cpp:1341

What about changing
    if(!m_part->xmlDocImpl()) return;
to
    if (!m_part || !m_part->xmlDocImpl()) return;

?

-- 
Best regards/Schöne Grüße

Martin
A: Because it breaks the logical sequence of discussion
Q: Why is top posting bad?

()  ascii ribbon campaign - against html e-mail 
/\  www.asciiribbon.org   - against proprietary attachments

Geschenkideen, Accessoires, Seifen, Kulinarisches: www.bibibest.at
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 190 bytes
Desc: This is a digitally signed message part.
URL: <https://mail.kde.org/mailman/private/kfm-devel/attachments/20110623/c4218e59/attachment.sig>


More information about the kfm-devel mailing list