getRemoteUser checks if the principal is null now
This commit is contained in:
Scott Battaglia 2008-05-27 17:01:38 +00:00
parent f92005dd8e
commit ef520c834f
1 changed files with 1 additions and 1 deletions

View File

@ -77,7 +77,7 @@ public final class HttpServletRequestWrapperFilter implements Filter {
}
public String getRemoteUser() {
return getUserPrincipal().getName();
return principal != null ? this.principal.getName() : null;
}
}
}