From 5c150e73611323d739cc4a29d7f6ba529f136f87 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Tue, 2 Dec 2008 00:17:14 +0000 Subject: Fix potential segfault when right-clicking patch nodes. git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@1839 a436a847-0d15-0410-975c-d299462d15a1 --- src/gui/NodeMenu.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gui/NodeMenu.cpp b/src/gui/NodeMenu.cpp index 79067cb9..8e6f03ac 100644 --- a/src/gui/NodeMenu.cpp +++ b/src/gui/NodeMenu.cpp @@ -90,8 +90,8 @@ NodeMenu::init(SharedPtr node) else _randomize_menuitem->hide(); - if (plugin->uri() == "http://drobilla.net/ns/ingen-internals#Controller" - || plugin->uri() == "http://drobilla.net/ns/ingen-internals#Trigger") + if (plugin && (plugin->uri() == "http://drobilla.net/ns/ingen-internals#Controller" + || plugin->uri() == "http://drobilla.net/ns/ingen-internals#Trigger")) _learn_menuitem->show(); else _learn_menuitem->hide(); -- cgit v1.2.1