diff --git a/src/indicators.ts b/src/indicators.ts index dce6657..fbd6b2f 100644 --- a/src/indicators.ts +++ b/src/indicators.ts @@ -144,7 +144,9 @@ export class Indicators { match = false; break; } - } while (folderName !== openFile[index]); + } while (folderName !== openFile[index] && + sourceFile[index] !== undefined && + openFile[index] !== undefined); return match; }