提交 23adbc51 编写于 作者: J jglick

[FIXED HUDSON-3914] JDK 1.4.2 installations were broken because there is no...

[FIXED HUDSON-3914] JDK 1.4.2 installations were broken because there is no option to select a language.

git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@19225 71c3de6d-444a-0410-be80-ed276b4c234a
上级 175eb356
......@@ -278,7 +278,9 @@ public class JDKInstaller extends ToolInstaller {
// select language
Element l = (Element)form.selectSingleNode(".//select[@id='dnld_language']");
os.print("&"+l.attributeValue("name")+"="+l.element("option").attributeValue("value"));
if (l != null) {
os.print("&"+l.attributeValue("name")+"="+l.element("option").attributeValue("value"));
}
// the rest
for (Element e : (List<Element>)form.selectNodes(".//input")) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册