diff --git a/validators/bids/fullTest.js b/validators/bids/fullTest.js index df0370d79..6c503d176 100644 --- a/validators/bids/fullTest.js +++ b/validators/bids/fullTest.js @@ -170,7 +170,7 @@ const fullTest = (fileList, callback) => { }) } } - if (stimFiles.length) { + if (stimFiles && stimFiles.length) { // add unique new events to the stimuli.events array stimuli.events = [...new Set([...stimuli.events, ...stimFiles])] }