From 752ed3f460a357c20027ea9d954f933f50d9a5ea Mon Sep 17 00:00:00 2001 From: Jonas Scheiwiller Date: Mon, 4 Nov 2024 21:37:06 +0100 Subject: [PATCH] Skip overriding algorithm suite in case there is no fault policy --- .../java/com/sun/xml/wss/jaxws/impl/SecurityServerTube.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wsit/ws-sx/wssx-impl/src/main/java/com/sun/xml/wss/jaxws/impl/SecurityServerTube.java b/wsit/ws-sx/wssx-impl/src/main/java/com/sun/xml/wss/jaxws/impl/SecurityServerTube.java index ca4a08ee..afd81c48 100644 --- a/wsit/ws-sx/wssx-impl/src/main/java/com/sun/xml/wss/jaxws/impl/SecurityServerTube.java +++ b/wsit/ws-sx/wssx-impl/src/main/java/com/sun/xml/wss/jaxws/impl/SecurityServerTube.java @@ -567,7 +567,7 @@ protected ProcessingContext initializeOutgoingProcessingContext( } // set the policy, issued-token-map, and extraneous properties //ctx.setIssuedTokenContextMap(issuedTokenContextMap); - if (isSCMessage || policy.getAlgorithmSuite() != null) { + if (policy != null && (isSCMessage || policy.getAlgorithmSuite() != null)) { //override the binding level suite ctx.setAlgorithmSuite(policy.getAlgorithmSuite()); } else {