Skip to content
Snippets Groups Projects
Commit 54f59c8c authored by Vitaly Sverchinsky's avatar Vitaly Sverchinsky
Browse files

Fix null pointer dereference

parent 9623d6dd
No related branches found
No related tags found
No related merge requests found
......@@ -937,8 +937,11 @@ bool NyquistEffect::Process(EffectInstance &, EffectSettings &settings)
auto &mCurLen = nyxContext.mCurLen;
mCurChannelGroup = pRange ? *pRange->first : nullptr;
mCurTrack[0] = (*mCurChannelGroup->Channels().begin()).get();
mCurTrack[0] = mCurChannelGroup
? (*mCurChannelGroup->Channels().begin()).get()
: nullptr;
mCurNumChannels = 1;
assert(mCurChannelGroup != nullptr || bOnePassTool);
if ( (mT1 >= mT0) || bOnePassTool ) {
if (bOnePassTool) {
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment