[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[xmlblaster] NPE when cloning Global
Hi,
I am back, trying to update the k2 adapter to the latest JBoss stuff,
but I have som problems with the current version in cvs:
When doing like this:
Global g = Global.instance();
Global myGlobal = g.getClone(null);
I get an NPE in intialization of Property (this is verrifyable by
running the SubscribeXPathTest:
at org.jutils.init.Property.clone(Property.java:356)
at org.xmlBlaster.util.Global.clone(Global.java:610)
at org.xmlBlaster.util.Global.getClone(Global.java:592)
at clustertest.ServerHelper.initHeron(ServerHelper.java:86)
at clustertest.ServerHelper.setUp(ServerHelper.java:191)
at clustertest.ServerHelper.<init>(ServerHelper.java:45)
at clustertest.SubscribeXPathTest.setUp(SubscribeXPathTest.java:62)
Its the tree map in property that us not set yet when the clone is done:
p.jutilsMap = (TreeMap)((TreeMap)this.jutilsMap).clone();
Should I fix this. Or do you do it, or is it an incorrect way of using
Global?
p.jutilsMap = this.jutilsMap != null ? (TreeMap)((TreeMap)this.jutilsMap).clone():null;
//Peter
--
------------------------------------------------------------
Peter Antman Chief Systems Architect, Business Development
Technology in Media, Box 34105 100 26 Stockholm
WWW: http://www.tim.se WWW: http://www.backsource.org
Email: pra at tim.se
Phone: +46-(0)8-506 381 11 Mobile: 070-675 3942
------------------------------------------------------------