From 7a3462afdabaab0b15b1a41b9b173d5efd23bb4a Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Wed, 26 Dec 2018 09:41:46 -0500 Subject: [PATCH] string typeof check --- src/importers/baseImporter.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 {