Skip to content

Commit

Permalink
[ISSUE #11343]Fix NPE (#11385)
Browse files Browse the repository at this point in the history
* fix NPE

* fix NPE
  • Loading branch information
985492783 authored Nov 17, 2023
1 parent ed9a55b commit 65917ec
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,10 @@ public void doFilter(ServletRequest request, ServletResponse response, FilterCha
HttpServletResponse resp = (HttpServletResponse) response;
try {
Method method = methodsCache.getMethod(req);
if (method == null) {
chain.doFilter(req, resp);
return;
}
ExtractorManager.Extractor extractor = method.getAnnotation(ExtractorManager.Extractor.class);
if (extractor == null) {
extractor = method.getDeclaringClass().getAnnotation(ExtractorManager.Extractor.class);
Expand Down

0 comments on commit 65917ec

Please sign in to comment.