From: pabs Date: Tue, 14 Aug 2007 12:37:12 +0000 (+0000) Subject: Fix 1356449: don't crash when creating a PasteCanvas by not accessing a NULL pointer X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=d1795bedb1062e757af2822ad430229351ddffc5;p=synfig.git Fix 1356449: don't crash when creating a PasteCanvas by not accessing a NULL pointer git-svn-id: http://svn.voria.com/code@553 1f10aa63-cdf2-0310-b900-c93c546f37ac --- diff --git a/synfig-studio/trunk/src/gtkmm/layerparamtreestore.cpp b/synfig-studio/trunk/src/gtkmm/layerparamtreestore.cpp index 8e0739a..928208c 100644 --- a/synfig-studio/trunk/src/gtkmm/layerparamtreestore.cpp +++ b/synfig-studio/trunk/src/gtkmm/layerparamtreestore.cpp @@ -400,8 +400,9 @@ LayerParamTreeStore::rebuild() } if(value_desc.get_value_type()==ValueBase::TYPE_CANVAS) { - changed_connection_list.push_back( - value_desc.get_value().get(Canvas::Handle())->signal_changed().connect( + Canvas::Handle canvas_handle = value_desc.get_value().get(Canvas::Handle()); + if(canvas_handle) changed_connection_list.push_back( + canvas_handle->signal_changed().connect( sigc::mem_fun( this, &LayerParamTreeStore::changed