java.lang.NullPointerException
at br.com.alura.gerenciador.web.FiltroDeAuditoria.doFilter(FiltroDeAuditoria.java:28)
@Override public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException, ServletException {
HttpServletRequest req = (HttpServletRequest) request; Cookie[] cookies = req.getCookies();
for (Cookie cookie : cookies) { if(cookie.getName().equals("usuario.logado")) { String usuario = cookie.getValue(); } }
System.out.println("Usuario acessando a URI " + req.getRequestURI()); chain.doFilter(request, response);
}
insira seu código aqui