Description
We use Coverity Scan tool to audit our open-source code against security vulnerabilities. Possible NullPointerException was detected in Axis2 generated ServiceStub class code. The issue occurs in following generated code:
} finally { if (_messageContext.getTransportOut() != null) { _messageContext.getTransportOut().getSender() .cleanup(_messageContext); } }
In case "_messageContext" is set to null, the if condition throws NPE. Also, we can see the path on how this variable value actually may become null, so we believe the issue is valid and null check should be present...
Here are possible implications of the issue from the security perspective: