I have been developing a project with dropwizard-guicey, Rignt now I'm setting up a security project and they have something like this:
@Provider
public class CorsFilter implements ContainerResponseFilter{
@Context
private HttpServletRequest httpServletRequest;
@Override
public void filter(ContainerRequestContext requestContext, ContainerResponseContext responseContext)
throws IOException {
this.httpServletRequest.getAttributeNames();
}
}
They are getting a null pointer exception, is there any way I could make this work?