From 5248b908807bfa2a55f818bff2130284c90fdb1c Mon Sep 17 00:00:00 2001 From: Jonathan Moore Liles Date: Sat, 16 Jan 2010 19:28:05 -0600 Subject: [PATCH] Mixer/Plugin_Module: Don't die because user picks a category instead of a plugin. --- Mixer/Plugin_Module.C | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Mixer/Plugin_Module.C b/Mixer/Plugin_Module.C index 3162283..89cdc89 100644 --- a/Mixer/Plugin_Module.C +++ b/Mixer/Plugin_Module.C @@ -134,6 +134,9 @@ Plugin_Module::pick_plugin ( void ) Plugin_Module::Plugin_Info *pi = (Plugin_Module::Plugin_Info*)menu->menu()[ menu->value() ].user_data(); + if ( ! pi ) + return NULL; + Plugin_Module *m = new Plugin_Module(); m->load( pi->id );