From 8508c37a3b59d38cdcc44eb1c117f830895ab03c Mon Sep 17 00:00:00 2001 From: "adrian.f.cole" Date: Sat, 27 Jun 2009 18:27:59 +0000 Subject: [PATCH] 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 --- .../java/org/jclouds/http/commands/callables/xml/ParseSax.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/src/main/java/org/jclouds/http/commands/callables/xml/ParseSax.java b/core/src/main/java/org/jclouds/http/commands/callables/xml/ParseSax.java index 4c1de99330..8e70f69b9f 100644 --- a/core/src/main/java/org/jclouds/http/commands/callables/xml/ParseSax.java +++ b/core/src/main/java/org/jclouds/http/commands/callables/xml/ParseSax.java @@ -100,7 +100,8 @@ public class ParseSax extends HttpFutureCommand.ResponseCallable { message.append("\n").append(response); } logger.error(e, message.toString()); - Utils. rethrowIfRuntimeOrSameType(e); + if (!(e instanceof NullPointerException)) + Utils. rethrowIfRuntimeOrSameType(e); throw new HttpException(message.toString(), e); } finally { IOUtils.closeQuietly(xml);