diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/sp-lpe-item.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/sp-lpe-item.cpp b/src/sp-lpe-item.cpp index bf9828b15..dce942934 100644 --- a/src/sp-lpe-item.cpp +++ b/src/sp-lpe-item.cpp @@ -277,6 +277,14 @@ void sp_lpe_item_perform_path_effect(SPLPEItem *lpeitem, SPCurve *curve) { for (PathEffectList::iterator it = lpeitem->path_effect_list->begin(); it != lpeitem->path_effect_list->end(); ++it) { LivePathEffectObject *lpeobj = (*it)->lpeobject; + if (!lpeobj) { + g_warning("sp_lpe_item_perform_path_effect - NULL lpeobj in list!"); + return; + } + if (!lpeobj->lpe) { + g_warning("sp_lpe_item_perform_path_effect - lpeobj without lpe!"); + return; + } if (lpeobj->lpe->isVisible()) { // Groups have their doBeforeEffect called elsewhere |
