[Bug 205713] KOrganizerPart crashes the application when it is embedded to show an ICS file (on Krusader as example) [null QWidget::window, QWidget::topLevelWidget, KOrganizerPart, KPluginFactory::createPartInstance<KOrganizerPart>]

Jan Lepper jan_lepper at gmx.de
Thu Aug 16 18:01:08 BST 2012


https://bugs.kde.org/show_bug.cgi?id=205713

Jan Lepper <jan_lepper at gmx.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
                 CC|                            |jan_lepper at gmx.de
         Resolution|WORKSFORME                  |---

--- Comment #16 from Jan Lepper <jan_lepper at gmx.de> ---
The bug is still present in git master.
It occurs when NULL is passed as parent widget to the factory funtion of
KOrganizerPart (can be seen from stack trace too).
This could happen by calling KService::createInstance (QObject *parent=0, const
QVariantList &args=QVariantList(), QString *error=0) .
KOrganizerPart()  then dereferences the null-pointer.
While the crash can be avoided by passing a valid parent widget (as I have now
done in the Krusader case *),
this shouldn't happen and the factory function should cast parent to QWidget if
possible - otherwise it should return 0.
Other KParts seem to to that too.

*)
http://quickgit.kde.org/index.php?p=krusader.git&a=commit&h=7b1f74a467c8389335fc96fc03ede51e0e710549

-- 
You are receiving this mail because:
You are on the CC list for the bug.



More information about the Kdepim-bugs mailing list