Hi all Had to fix ParentNode::readObject when deserializing-got a NullPointer Exception. This works, but it I am not certain of all it does.
/** Deserialize object. */
private void readObject(ObjectInputStream ois)
throws ClassNotFoundException, IOException {
// perform default deseralization
ois.defaultReadObject();
// hardset synchildren - so we don't try to sync- it does not make
any sense
// to try to synchildren when we just desealize object.
needsSyncChildren(false);
if (fNodeListCache==null)
{
// otherwise request a cache object
fNodeListCache = ownerDocument.getNodeListCache(this);
}
// initialize transients
fNodeListCache.fLength = -1;
fNodeListCache.fChildIndex = -1;
} // readObject(ObjectInputStream)
Kind Regards
Jo van der Merwe
J.P. van der Merwe
Technical Consultant : Business Integration
Dimension Data i-Commerce Software
*Tel: +27 011 263 5244
*Switchboard +27 011 263 5000
*Mobile: +27 082 322 6406
*Fax: +27 011 263 5301
*Helpdesk +27 086 1100 686
*Email [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>
*Website <http://www.ic.didata.com/>
Main.java
Description: Binary data
ParentNode.java
Description: Binary data
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
