From a1276e3b2f766715175bbd9f92fd41bae9781b0c Mon Sep 17 00:00:00 2001 From: joncruz Date: Fri, 6 Apr 2007 16:11:45 +0000 Subject: [PATCH] Prevent null pointer dereferencing --- 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; } -- 2.30.2