In the load method:

ObjectEntry entry = null;

Object object = null;

OID oid;

if ( identity == null )

throw new PersistenceException("Identities can't be null!");

oid = new OID( engine, molder, identity );

if ( objectToBeLoaded != null

&& !molder.getJavaClass( _db.getClassLoader() ).isAssignableFrom( objectToBeLoaded.getClass() ) )

throw new PersistenceException( Messages.format("persist.typeMismatch", molder.getName(), entry.object.getClass() ) );

 

If the PersistenceException is thrown a Null pointer exception occurs because entry is null.

Reply via email to