From d76a13fb75cf3d42732d25c4805ebd306afef7db Mon Sep 17 00:00:00 2001 From: Jim Ma Date: Fri, 11 Oct 2024 16:48:15 +0800 Subject: [PATCH] [JBWS-4429]:minor change to improve the previous commit --- .../jboss/wsf/stack/cxf/interceptor/HandlerAuthInterceptor.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/server/src/main/java/org/jboss/wsf/stack/cxf/interceptor/HandlerAuthInterceptor.java b/modules/server/src/main/java/org/jboss/wsf/stack/cxf/interceptor/HandlerAuthInterceptor.java index 1098c1d31..40bc62a05 100644 --- a/modules/server/src/main/java/org/jboss/wsf/stack/cxf/interceptor/HandlerAuthInterceptor.java +++ b/modules/server/src/main/java/org/jboss/wsf/stack/cxf/interceptor/HandlerAuthInterceptor.java @@ -143,11 +143,11 @@ protected void checkAuthorization(MessageContext ctx) { SecurityContext secCtx = message.get(SecurityContext.class); BindingOperationInfo bop = exchange.getBindingOperationInfo(); - MethodDispatcher md = (MethodDispatcher) exchange.getService().get(MethodDispatcher.class.getName()); if (bop == null) { throw MESSAGES.missingBindingOperationForAuthorization(); } + MethodDispatcher md = (MethodDispatcher) exchange.getService().get(MethodDispatcher.class.getName()); Method method = md.getMethod(bop); EJBMethodSecurityAttribute attributes = attributeProvider.getSecurityAttributes(method);