You are viewing a plain text version of this content. The canonical link for it is here.
Posted to ojb-dev@db.apache.org by Ron Gallagher <rg...@bellsouth.net> on 2003/04/11 21:51:44 UTC

afterLookup fires for null instance

If I call pb.getObjectByIdentity and there is no entry in the database matching the primary key that's specified in the Identity object, the afterLookup callback in the PersistenceBrokerListener interface is still invoked.  The "instance" argument that's passed to the afterLookup method is null.  This doesn't make sense to me.

I've updated the fireBrokerEvent method in PersistenceBrokerAbstractImpl.java to notify the listeners only if the instance that's passed in is not null.

Please let me know what you think.

Ron Gallagher
Atlanta, GA
rongallagher@bellsouth.net