diff --git a/libs/auth/src/angular/login/login.component.ts b/libs/auth/src/angular/login/login.component.ts index 546bb13e88..b694168223 100644 --- a/libs/auth/src/angular/login/login.component.ts +++ b/libs/auth/src/angular/login/login.component.ts @@ -266,7 +266,7 @@ export class LoginComponent implements OnInit, OnDestroy { if (error instanceof ErrorResponse) { switch (error.statusCode) { case HttpStatusCode.BadRequest: { - if (error.message.toLowerCase().includes("username or password is incorrect")) { + if (error.message?.toLowerCase().includes("username or password is incorrect")) { this.formGroup.controls.masterPassword.setErrors({ error: { message: this.i18nService.t("invalidMasterPassword"),