Skip to content

Commit 25626df

Browse files
committed
Prevent null ptr dereference in setActiveRecording
1 parent b3bb1a9 commit 25626df

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

Source/Processors/FileReader/FileReader.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,9 @@ bool FileReader::setFile (String fullpath)
233233

234234

235235
void FileReader::setActiveRecording (int index)
236-
{
236+
{
237+
if (!input) { return; }
238+
237239
input->setActiveRecord (index);
238240

239241
currentNumChannels = input->getActiveNumChannels();

0 commit comments

Comments
 (0)