On Thursday 13 November 2008 16:45, xor wrote:
>
> > > + try {
> > > + Identity id = Identity.getByURI(db,
> > state.getURI());
> > > + identities.remove(id);
> >
> > You *really* should check the return value here. I've had
> > wierd bugs with this sort of thing.
> >
> > > + } catch(UnknownIdentityException ex) {}
> > > +
> > > }
> >
>
> You mean db4o could return a different ientity than the requested
> one or what?!?
No... well hopefully not. I mean state.getURI() might return something wrong,
identities.remove() might fail because of some wierd bug ... just check the
retval and log an ERROR if it's not successfully removed.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 827 bytes
Desc: not available
URL:
<https://emu.freenetproject.org/pipermail/devl/attachments/20081113/1cc1a772/attachment.pgp>