mirror of https://github.com/apache/jclouds.git
instrumented so that NPE contain the XML content it arised from
git-svn-id: http://jclouds.googlecode.com/svn/trunk@1474 3d8758e0-26b5-11de-8745-db77d3ebf521
This commit is contained in:
parent
fd08265c67
commit
8508c37a3b
|
@ -100,7 +100,8 @@ public class ParseSax<T> extends HttpFutureCommand.ResponseCallable<T> {
|
||||||
message.append("\n").append(response);
|
message.append("\n").append(response);
|
||||||
}
|
}
|
||||||
logger.error(e, message.toString());
|
logger.error(e, message.toString());
|
||||||
Utils.<HttpException> rethrowIfRuntimeOrSameType(e);
|
if (!(e instanceof NullPointerException))
|
||||||
|
Utils.<HttpException> rethrowIfRuntimeOrSameType(e);
|
||||||
throw new HttpException(message.toString(), e);
|
throw new HttpException(message.toString(), e);
|
||||||
} finally {
|
} finally {
|
||||||
IOUtils.closeQuietly(xml);
|
IOUtils.closeQuietly(xml);
|
||||||
|
|
Loading…
Reference in New Issue