From 7900ef6addc8631153081b6e6d11d2b630b68d8e Mon Sep 17 00:00:00 2001 From: Jonathan Moore Liles Date: Tue, 16 Apr 2013 18:57:01 -0700 Subject: [PATCH] Mixer: Fix segfault on attempt to make osc ports for module ports which shouldn't be controllable. --- mixer/src/Module.C | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/mixer/src/Module.C b/mixer/src/Module.C index 8a953a3..9268bff 100644 --- a/mixer/src/Module.C +++ b/mixer/src/Module.C @@ -234,7 +234,10 @@ Module::handle_control_changed ( Port *p ) bool Module::Port::connected_osc ( void ) const { - return _scaled_signal->connected(); + if ( _scaled_signal ) + return _scaled_signal->connected(); + else + return false; } char *