From 6a958afd16cd727c1cfade2f4a0aff3ae22ec28a Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Wed, 12 Dec 2018 19:37:06 -0500 Subject: [PATCH] length check on userInputs --- src/services/passwordGeneration.service.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/services/passwordGeneration.service.ts b/src/services/passwordGeneration.service.ts index 0eb2d738fe..3e5dcd1895 100644 --- a/src/services/passwordGeneration.service.ts +++ b/src/services/passwordGeneration.service.ts @@ -247,7 +247,7 @@ export class PasswordGenerationService implements PasswordGenerationServiceAbstr return null; } let globalUserInputs = ['bitwarden', 'bit', 'warden']; - if (userInputs != null) { + if (userInputs != null && userInputs.length > 0) { globalUserInputs = globalUserInputs.concat(userInputs); } // Use a hash set to get rid of any duplicate user inputs