wso2-dev/carbon-mediation — pull request #69 by Buddhima (2014-11-18 08:37:38+00:00)
Title: [BAM Mediator] NPE thrown when Dump Header & Body of the payload selected and actual message don't have either of this on BAM mediator

When a Pass through proxy created and point to a simple stock quote service as end point and added BAM mediator to both In Sequence and Out Sequence and send a request throwing an exception
1. Create a BAM Server Profile with 2 streams for In and Out sequence with appropriate details and under Stream Configuration Dump Header & Dump Body checked.
2. Create a Pass through Proxy with an endpoint to a Simple Stock Quote service and BAM mediator on both in & out sequence.
3. Invoke a getQoute request and noted the below exception.
[2014-04-07 18:38:53,232] ERROR - MetaDataBuilder Error occurred while extracting the SOAP header or SOAP body. null
java.lang.NullPointerException