[Kde-pim] Review Request: Check that EntityTreeModelPrivate::m_collection actually contains a key before the assertion

David Narváez david.narvaez at computer.org
Thu Sep 15 12:39:36 BST 2011


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
http://git.reviewboard.kde.org/r/102616/
-----------------------------------------------------------

Review request for Akonadi and KDEPIM-Libraries.


Summary
-------

I was experiencing crashes when updating iCal resources, similar to bug 273676 (but probably not the same) and after some debugging I found out that the Q_ASSERT to check that m_collection indeed has the key to remove (line 1030) was causing the issue. Adding a check to be sure the key is indeed in m_collections should fix that, but I'm not sure if code should worry more about why the key is not in m_collections or just do the check. Makes sense?


This addresses bug 273676.
    http://bugs.kde.org/show_bug.cgi?id=273676


Diffs
-----

  akonadi/entitytreemodel_p.cpp d3ab393 

Diff: http://git.reviewboard.kde.org/r/102616/diff


Testing
-------

1. Add an iCal resource (I'm actually not sure if this happens with all iCal resources, if needed I could point at one URL which fails in all of my KDE 4.7 installations)
2. Plasma crashes
3. Apply the patch and restart plasma-desktop
4. Open KOrganizer and update the iCal resource, plasma should not crash now


Thanks,

David

_______________________________________________
KDE PIM mailing list kde-pim at kde.org
https://mail.kde.org/mailman/listinfo/kde-pim
KDE PIM home page at http://pim.kde.org/



More information about the kde-pim mailing list