Skip to content

OncePerRequestFilter.isAsyncDispatch may return a NPE #26602

Closed
@slyoldfox

Description

@slyoldfox

This is a follow-up ticket for as request in #26282 where OncePerRequestFilter.isAsyncDispatch might NPE.

In our case we were using a silly mockito mock in a test which was testing the MultiPartFilter integration

HttpServletRequest request = mock( HttpServletRequest.class );
HttpServletResponse response = mock( HttpServletResponse.class );

multipartFilter.doFilter( request, response, mock( FilterChain.class ) );

Metadata

Metadata

Assignees

Labels

in: webIssues in web modules (web, webmvc, webflux, websocket)type: enhancementA general enhancement

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions