diff --git a/src/AudioIO.cpp b/src/AudioIO.cpp index a8d145dbc..a78bd1cab 100644 --- a/src/AudioIO.cpp +++ b/src/AudioIO.cpp @@ -1643,6 +1643,12 @@ bool AudioIO::StartPortAudioStream(double sampleRate, mAudioFramesPerBuffer = 0; #endif mOwningProject = GetActiveProject(); + + // PRL: Protection from crash reported by David Bailes, involving starting + // and stopping with frequent changes of active window, hard to reproduce + if (!mOwningProject) + return false; + mInputMeter = NULL; mOutputMeter = NULL;