diff --git a/bids-validator/src/schema/expressionLanguage.ts b/bids-validator/src/schema/expressionLanguage.ts index 512319965..93ba08445 100644 --- a/bids-validator/src/schema/expressionLanguage.ts +++ b/bids-validator/src/schema/expressionLanguage.ts @@ -1,4 +1,8 @@ function exists(list: string[], rule: string = 'dataset'): number { + if (list == null) { + return 0 + } + const prefix: string[] = [] // Stimuli and subject-relative paths get prefixes