Index: D:/prj/stack-native/src/main/java/org/jboss/ws/extensions/security/WSSecurityDispatcher.java =================================================================== --- D:/prj/stack-native/src/main/java/org/jboss/ws/extensions/security/WSSecurityDispatcher.java (revision 5428) +++ D:/prj/stack-native/src/main/java/org/jboss/ws/extensions/security/WSSecurityDispatcher.java (working copy) @@ -113,8 +113,11 @@ SOAPMessageImpl soapMessage = (SOAPMessageImpl)ctx.getSOAPMessage(); SOAPHeader soapHeader = soapMessage.getSOAPHeader(); - QName secQName = new QName(Constants.WSSE_NS, "Security"); - Element secHeaderElement = Util.findElement(soapHeader, secQName); + Element secHeaderElement = null; + if( soapHeader != null ) { + QName secQName = new QName(Constants.WSSE_NS, "Security"); + secHeaderElement = Util.findElement(soapHeader, secQName); + } if (secHeaderElement == null) {