You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by Wojciech Baran <w....@amg.net.pl> on 2008/04/25 14:02:17 UTC

NullPointerException in JbiConduitOutputStream

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.