On Monday 10 November 2008 02:23, xor at freenetproject.org wrote:
> Author: xor
> Date: 2008-11-10 02:23:00 +0000 (Mon, 10 Nov 2008)
> New Revision: 23459
> 
> Modified:
>    trunk/plugins/WoT/Identity.java
>    trunk/plugins/WoT/IdentityFetcher.java
>    trunk/plugins/WoT/IdentityParser.java
>    trunk/plugins/WoT/OwnIdentity.java
>    trunk/plugins/WoT/Trust.java
>    trunk/plugins/WoT/WoT.java
> Log:
> 
> 
> Modified: trunk/plugins/WoT/IdentityFetcher.java
> ===================================================================
> --- trunk/plugins/WoT/IdentityFetcher.java    2008-11-09 23:12:34 UTC (rev 
23458)
> +++ trunk/plugins/WoT/IdentityFetcher.java    2008-11-10 02:23:00 UTC (rev 
23459)
> @@ -130,22 +140,14 @@
>               }
>               // Errors we can't/want deal with
>               Logger.error(this, "Fetch failed for "+ state.getURI(), e);
> -             requests.remove(state); 
> +             requests.remove(state);
> +             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) {}
> +             
>       }
-------------- 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/20081112/a347d43f/attachment.pgp>

Reply via email to