[OJB-developers] Re: Problem with cascade delete and null references
Brought to you by:
thma
From: Thomas M. <tho...@ho...> - 2001-12-11 11:08:02
|
Thanks Rainer, I will add this to my ever growing todo list... -- Thomas "Bischof, Rainer" wrote: > > Thomas, > > I guess I found the next bug: > In PersistenceBrokerImpl.deleteReferences there is > > [...] > try > { > Object r = rds.getPersistentField().get(obj); > delete(r); > } > catch (Exception ex) > { > ex.printStackTrace(); > } > [...] > > If cascade delete is activated and the reference is null this leads to a > NullPointerException in the delete method. This exception is ( once again > ;-) ) caught and silently ignored. > > Thanks > Rainer > > Rainer Bischof > EDS - Electronic Data Systems > European Automotive Solution Center - Distributed Solutions > Email: rai...@ed... <mailto:rai...@ed...> |