diff --git a/src/importers/baseImporter.ts b/src/importers/baseImporter.ts index b70a566a59..76069e261b 100644 --- a/src/importers/baseImporter.ts +++ b/src/importers/baseImporter.ts @@ -155,7 +155,7 @@ export abstract class BaseImporter { } protected isNullOrWhitespace(str: string): boolean { - return str == null || str.trim() === ''; + return str == null || typeof str !== 'string' || str.trim() === ''; } protected getValueOrDefault(str: string, defaultValue: string = null): string {