Skip to content

Commit

Permalink
Merge pull request #65 from uPortal-Project/fix_NPE_VFS_Auth
Browse files Browse the repository at this point in the history
Fix: NPE when no userAuthenticatorService set
  • Loading branch information
jgribonvald authored Jul 23, 2021
2 parents e70ef01 + 316362a commit 1122898
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -177,8 +177,8 @@ public boolean supportIntraCutPast() {
}

public boolean formAuthenticationRequired(SharedUserPortletParameters userParameters) {
if(this.userAuthenticatorService.formAuthenticationNeeded(userParameters)) {
if(this.userAuthenticatorService.getUserPassword(userParameters) == null || this.userAuthenticatorService.getUserPassword(userParameters).getPassword() == null || this.userAuthenticatorService.getUserPassword(userParameters).getPassword().length() == 0) {
if (this.userAuthenticatorService != null && this.userAuthenticatorService.formAuthenticationNeeded(userParameters)) {
if (this.userAuthenticatorService.getUserPassword(userParameters) == null || this.userAuthenticatorService.getUserPassword(userParameters).getPassword() == null || this.userAuthenticatorService.getUserPassword(userParameters).getPassword().length() == 0) {
this.userAuthenticatorService.initialize(userParameters);
return true;
}
Expand Down

0 comments on commit 1122898

Please sign in to comment.