diff --git a/core/src/main/java/com/alibaba/nacos/core/paramcheck/ParamCheckerFilter.java b/core/src/main/java/com/alibaba/nacos/core/paramcheck/ParamCheckerFilter.java index 6995f83c083..6b1d1418bb1 100644 --- a/core/src/main/java/com/alibaba/nacos/core/paramcheck/ParamCheckerFilter.java +++ b/core/src/main/java/com/alibaba/nacos/core/paramcheck/ParamCheckerFilter.java @@ -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);