cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Wojciech Baran <w.ba...@amg.net.pl>
Subject NullPointerException in JbiConduitOutputStream
Date Fri, 25 Apr 2008 12:02:17 GMT
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.

Mime
View raw message