Details
-
Type: Bug
-
Status: Closed
-
Priority: Major
-
Resolution: Fixed
-
Affects Version/s: Upcoming
-
Fix Version/s: 1.4
-
Component/s: None
-
Labels:None
-
JDK version and platform:Android
Description
I try to use XStream (SVN revision 1802) with Android (2.1) but an exception is thrown:
java.lang.NullPointerException
at c...mapper.ClassAliasingMapper.addClassAlias(ClassAliasingMapper.java:35)
at com.thoughtworks.xstream.XStream.alias(XStream.java:985)
at com.thoughtworks.xstream.XStream.setupAliases(XStream.java:607)
at com.thoughtworks.xstream.XStream.<init>(XStream.java:450)
at com.thoughtworks.xstream.XStream.<init>(XStream.java:377)
at com.thoughtworks.xstream.XStream.<init>(XStream.java:352)
at at.digitald.core.GOF.initialize(GOF.java:49)
...
GOF.initialize:
public void initialize()
{ Xpp3Driver driver = new Xpp3Driver(); xs = new XStream(driver); }included libs: "xstream-1.4-SNAPSHOT.jar" and "xpp3_min-1.1.4c.jar"
Same code works fine on my desktop.
Thanks
Marc
Fixed in HEAD.