Author: nextgens Date: 2006-09-08 22:33:04 +0000 (Fri, 08 Sep 2006) New Revision: 10439
Modified: trunk/freenet/src/freenet/clients/http/ConfigToadlet.java Log: fix a NPE http://dark-code.bulix.org/go6qbw-16381?raw Modified: trunk/freenet/src/freenet/clients/http/ConfigToadlet.java =================================================================== --- trunk/freenet/src/freenet/clients/http/ConfigToadlet.java 2006-09-08 22:03:05 UTC (rev 10438) +++ trunk/freenet/src/freenet/clients/http/ConfigToadlet.java 2006-09-08 22:33:04 UTC (rev 10439) @@ -148,8 +148,8 @@ HTMLNode configItemNode = configGroupUlNode.addChild("li"); configItemNode.addChild("span", "class", "configshortdesc", o[j].getShortDesc()); HTMLNode configItemValueNode = configItemNode.addChild("span", "class", "config"); - - if(o[j].getValueString().equals("true") || o[j].getValueString().equals("false")){ + + if(o[j].getValueString() != null && (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");
