Author: nextgens
Date: 2006-09-08 22:36:47 +0000 (Fri, 08 Sep 2006)
New Revision: 10440

Modified:
   trunk/freenet/src/freenet/clients/http/ConfigToadlet.java
Log:
Log it insteed so that it can be fixed properly

Modified: trunk/freenet/src/freenet/clients/http/ConfigToadlet.java
===================================================================
--- trunk/freenet/src/freenet/clients/http/ConfigToadlet.java   2006-09-08 
22:33:04 UTC (rev 10439)
+++ trunk/freenet/src/freenet/clients/http/ConfigToadlet.java   2006-09-08 
22:36:47 UTC (rev 10440)
@@ -148,8 +148,11 @@
                                        HTMLNode configItemNode = 
configGroupUlNode.addChild("li");
                                        configItemNode.addChild("span", 
"class", "configshortdesc", o[j].getShortDesc());
                                        HTMLNode configItemValueNode = 
configItemNode.addChild("span", "class", "config");
-
-                                       if(o[j].getValueString() != null && 
(o[j].getValueString().equals("true") || 
o[j].getValueString().equals("false"))){
+                                       if(o[j].getValueString() == null){
+                                               Logger.error(this, 
sc[i].getPrefix() + configName + "has returned null from config!);");
+                                               continue;
+                                       }
+                                       if(o[j].getValueString().equals("true") 
|| o[j].getValueString().equals("false")){
                                                HTMLNode selectNode = 
configItemValueNode.addChild("select", "name", sc[i].getPrefix() + "." + 
configName);
                                                
if(o[j].getValueString().equals("true")){
                                                        
selectNode.addChild("option", new String[] { "value", "selected" }, new 
String[] { "true", "selected" }, "true");


Reply via email to