diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/server/PortImpl.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/server/PortImpl.cpp b/src/server/PortImpl.cpp index a9c1aefe..9a701d39 100644 --- a/src/server/PortImpl.cpp +++ b/src/server/PortImpl.cpp @@ -243,7 +243,9 @@ PortImpl::set_voice_value(const RunContext& context, { switch (_type.id()) { case PortType::CONTROL: - ((LV2_Atom_Float*)buffer(voice)->value())->body = value; + if (buffer(voice)->value()) { + ((LV2_Atom_Float*)buffer(voice)->value())->body = value; + } _voices->at(voice).set_state.set(context, context.start(), value); break; case PortType::AUDIO: |