From 0c7332e22adeaab194768b86951544a09311c6c1 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 ef862b774..b75d1aa9b 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 @@ -146,11 +146,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);