Code

r14578@tres: ted | 2007-02-27 18:59:35 -0800
authorgouldtj <gouldtj@users.sourceforge.net>
Thu, 1 Mar 2007 07:14:01 +0000 (07:14 +0000)
committergouldtj <gouldtj@users.sourceforge.net>
Thu, 1 Mar 2007 07:14:01 +0000 (07:14 +0000)
 Protecting against the posibility of the INKSCAPE variable being NULL

src/extension/effect.cpp

index 1fef1a9db9f0f8032099dd84a45504417cf13636..0f9434c17abafcf8c01b7955771a58fd1c6a6b36 100644 (file)
@@ -67,8 +67,9 @@ Effect::Effect (Inkscape::XML::Node * in_repr, Implementation::Implementation *
         } // children of "inkscape-extension"
     } // if we have an XML file
 
-    if (_effects_list == NULL)
+    if (_effects_list == NULL && INKSCAPE != NULL) {
         find_effects_list(inkscape_get_menus(INKSCAPE));
+    }
 
     if (_effects_list != NULL) {
         Inkscape::XML::Document *xml_doc;