Skip to content

Commit 374524d

Browse files
committed
fix eclipse parser bug
1 parent 4512586 commit 374524d

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/EclipseProjectParser.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -427,7 +427,8 @@ function parseToolOption(optionObj: any): { type: string, val: string[] } | unde
427427
}
428428

429429
function toArray(obj: any): any[] {
430-
if (!isArray(obj)) return [];
430+
if (obj == undefined || obj == null) return [];
431+
if (!isArray(obj)) return [obj];
431432
return obj;
432433
}
433434

0 commit comments

Comments
 (0)