When MessageExchange contains no fault but error this code causes NPE:

NormalizedMessage outMsg = ((InOut)xchng).getOutMessage();
Source content = null;
if (outMsg != null) {
        content = outMsg.getContent();
} else {
        content = ((InOut)xchng).getFault().getContent();
}

There should be some checking for error if there is no fault present.

Reply via email to