Skip to content
This repository was archived by the owner on Feb 2, 2021. It is now read-only.

Commit 31ff1d0

Browse files
committed
Merge pull request #348 from telerik/kerezov/fix-cannot-read-length-of-undefined
Fix weird error message when importing certificate with no password
2 parents a1fa4b1 + 2c64a1c commit 31ff1d0

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

logger.ts

+1
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,7 @@ export class Logger implements ILogger {
147147
}
148148

149149
private getHiddenPassword(password: string, originalString: string) {
150+
password = password || '';
150151
return originalString.replace(password, new Array(password.length + 1).join('*'));
151152
}
152153
}

0 commit comments

Comments
 (0)