From bbbd795b2f36d25aefdb823a4a585da8468eed76 Mon Sep 17 00:00:00 2001 From: "Jon A. Cruz" Date: Fri, 6 Apr 2007 16:11:45 +0000 Subject: Prevent null pointer dereferencing (bzr r2826) --- src/inkscape.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/inkscape.cpp b/src/inkscape.cpp index af6ef4f05..829aacdc9 100644 --- a/src/inkscape.cpp +++ b/src/inkscape.cpp @@ -727,7 +727,7 @@ inkscape_load_menus (Inkscape::Application *inkscape) Inkscape::XML::Node * inkscape_get_repr (Inkscape::Application *inkscape, const gchar *key) { - if (key == NULL) { + if ( (key == NULL) || (inkscape == NULL) ) { return NULL; } -- cgit v1.2.3