Author: j16sdiz
Date: 2008-12-17 06:52:18 +0000 (Wed, 17 Dec 2008)
New Revision: 24418

Modified:
   trunk/plugins/KeyExplorer/KeyExplorer.java
Log:
workaround the NPE on KeyExplorer. why this happend?

Modified: trunk/plugins/KeyExplorer/KeyExplorer.java
===================================================================
--- trunk/plugins/KeyExplorer/KeyExplorer.java  2008-12-17 06:47:50 UTC (rev 
24417)
+++ trunk/plugins/KeyExplorer/KeyExplorer.java  2008-12-17 06:52:18 UTC (rev 
24418)
@@ -405,8 +405,8 @@
                        htmlnode.addChild("#", "(extern)\u00a0");
                        htmlnode.addChild(new HTMLNode("a", "href", "/?key=" + 
furi + "/" + fname, fname));
                        htmlnode.addChild("#", "\u00a0");
-                       htmlnode.addChild(new HTMLNode("a", "href", 
"/plugins/plugins.KeyExplorer.KeyExplorer/?key=" + 
md.getSingleTarget().toString(),
-                               "explore"));
+                               if (md.getSingleTarget() != null) // why null?
+                                       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