Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
1.6.2
-
None
Description
in RampartEngine class I get a NullPointerException in line 369 (method: isSecurityFault). Seems that this line:
if (faultCode.getTextAsQName().getNamespaceURI().equals(WSConstants.WSSE_NS))
throws the exception because getTextAsQName() can return null and this should be handled.
Solution:
QName faultCodeQName = faultCode.getTextAsQName();
if (faultCodeQName == null) {
// handle exception
return false; // ?
} else {
if (faultCodeQName.getNamespaceURI().equals(WSConstants.WSSE_NS))
}