summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJon A. Cruz <jon@joncruz.org>2007-04-06 16:11:45 +0000
committerjoncruz <joncruz@users.sourceforge.net>2007-04-06 16:11:45 +0000
commitbbbd795b2f36d25aefdb823a4a585da8468eed76 (patch)
tree3f2435264cd5ec334d5a4a15b8b75804cd666c55 /src
parentsome people reported crashes when adding nonexisting dirs to dialog - though ... (diff)
downloadinkscape-bbbd795b2f36d25aefdb823a4a585da8468eed76.tar.gz
inkscape-bbbd795b2f36d25aefdb823a4a585da8468eed76.zip
Prevent null pointer dereferencing
(bzr r2826)
Diffstat (limited to 'src')
-rw-r--r--src/inkscape.cpp2
1 files changed, 1 insertions, 1 deletions
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;
}