Skip to content

Commit a1d483e

Browse files
authored
Merge pull request #289 from tne-lab/fr-invalid-file-fix
Fix crash when loading signal chain with invalid file in File Reader
2 parents b3bb1a9 + 25626df commit a1d483e

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)