From e2dcdc01dfe5ed43500f0d16eea9c0c022a5f1a4 Mon Sep 17 00:00:00 2001 From: johanengelen Date: Mon, 2 Jun 2008 20:01:04 +0000 Subject: [PATCH] fix crash, report warnings instead. trying to find real cause for this (crash on copying path with lpestack). --- src/sp-lpe-item.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) 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 -- 2.30.2