CASC-50
getRemoteUser checks if the principal is null now
This commit is contained in:
parent
f92005dd8e
commit
ef520c834f
|
|
@ -77,7 +77,7 @@ public final class HttpServletRequestWrapperFilter implements Filter {
|
|||
}
|
||||
|
||||
public String getRemoteUser() {
|
||||
return getUserPrincipal().getName();
|
||||
return principal != null ? this.principal.getName() : null;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue