Author: xor
Date: 2008-11-08 09:11:47 +0000 (Sat, 08 Nov 2008)
New Revision: 23411

Modified:
   trunk/plugins/WoT/WoT.java
Log:
Fix NPE.

Modified: trunk/plugins/WoT/WoT.java
===================================================================
--- trunk/plugins/WoT/WoT.java  2008-11-08 03:55:27 UTC (rev 23410)
+++ trunk/plugins/WoT/WoT.java  2008-11-08 09:11:47 UTC (rev 23411)
@@ -569,7 +569,7 @@

                sfs.putAppend("Message", "Identities");

-               OwnIdentity treeOwner = OwnIdentity.getByURI(db, 
params.get("TreeOwner"));
+               OwnIdentity treeOwner = params.get("TreeOwner")!=null ? 
OwnIdentity.getByURI(db, params.get("TreeOwner")) : null;

                String selectString = params.get("Select").trim();
                int select = 0; // TODO: decide about the default value


Reply via email to