Try to avoid segfaults on shape factory not found
ClosedPublic

Authored by dcaliste on Sep 24 2018, 1:08 PM.

Details

Summary

Try to catch every pattern of KoShapeRegistry::instance()->value() in the code and check the return pointer before using it.

It's a follow-up of https://phabricator.kde.org/D15679.

Diff Detail

Repository
R8 Calligra
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
dcaliste created this revision.Sep 24 2018, 1:08 PM
Restricted Application added a subscriber: Calligra-Devel-list. · View Herald TranscriptSep 24 2018, 1:08 PM
dcaliste requested review of this revision.Sep 24 2018, 1:08 PM
boemann accepted this revision.Sep 24 2018, 1:26 PM
This revision is now accepted and ready to land.Sep 24 2018, 1:26 PM
This revision was automatically updated to reflect the committed changes.