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);