Author: saces
Date: 2009-01-30 11:50:28 +0000 (Fri, 30 Jan 2009)
New Revision: 25391

Modified:
   trunk/plugins/KeyExplorer/KeyExplorer.java
Log:
A NPE means either the insert code is wrong or the decode logic is missing 
somethat (mostly the latter).
But never surpress it silently.

Modified: trunk/plugins/KeyExplorer/KeyExplorer.java
===================================================================
--- trunk/plugins/KeyExplorer/KeyExplorer.java  2009-01-30 01:42:43 UTC (rev 
25390)
+++ trunk/plugins/KeyExplorer/KeyExplorer.java  2009-01-30 11:50:28 UTC (rev 
25391)
@@ -405,8 +405,7 @@
                        htmlnode.addChild("#", "(extern)\u00a0");
                        htmlnode.addChild(new HTMLNode("a", "href", "/?key=" + 
furi + "/" + fname, fname));
                        htmlnode.addChild("#", "\u00a0");
-                               if (md.getSingleTarget() != null) // why null?
-                                       htmlnode.addChild(new HTMLNode("a", 
"href", "/plugins/plugins.KeyExplorer.KeyExplorer/?key=" + 
md.getSingleTarget().toString(), "explore"));
+                               htmlnode.addChild(new HTMLNode("a", "href", 
"/plugins/plugins.KeyExplorer.KeyExplorer/?key=" + 
md.getSingleTarget().toString(), "explore"));
                                htmlnode.addChild("%", "<BR />");
                } else if (md.isSplitfile()) {
                        htmlnode.addChild("#", "(extern, splitf)\u00a0");

_______________________________________________
cvs mailing list
[email protected]
http://emu.freenetproject.org/cgi-bin/mailman/listinfo/cvs

Reply via email to