Try to avoid segfaults on shape factory not found

Authored by dcaliste on Sep 24 2018, 2:28 PM.

Description

Try to avoid segfaults on shape factory not found

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.

Reviewed By: boemann

Differential Revision: https://phabricator.kde.org/D15728

Details

Committed
dcalisteSep 24 2018, 2:28 PM
Reviewer
boemann
Differential Revision
D15728: Try to avoid segfaults on shape factory not found
Parents
R8:5149f3864f5e: Add missing dependencies for PART_STAGE
Branches
Unknown
Tags
Unknown