Skip to content
This repository has been archived by the owner on Nov 7, 2020. It is now read-only.

Commit

Permalink
[XSTR-736] NPE from XStream.unmarshal.
Browse files Browse the repository at this point in the history
  • Loading branch information
jglick committed May 23, 2013
1 parent c86f026 commit f669b43
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion xstream/src/java/com/thoughtworks/xstream/XStream.java
Expand Up @@ -1063,7 +1063,8 @@ public Object unmarshal(HierarchicalStreamReader reader, Object root, DataHolder

} catch (ConversionException e) {
Package pkg = getClass().getPackage();
e.add("version", pkg != null ? pkg.getImplementationVersion() : "not available");
String version = pkg != null ? pkg.getImplementationVersion() : null;
e.add("version", version != null ? version : "not available");
throw e;
}
}
Expand Down

1 comment on commit f669b43

@jglick
Copy link
Member Author

@jglick jglick commented on f669b43 Aug 26, 2013

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.