未捕获的TypeError:无法读取未定义的属性“ firstChild”-updateListBox

时间:2019-01-28 19:16:04

标签: jenkins jenkins-plugins

我已经开发了Jenkins插件,并遇到错误。该插件在Jenkins版本2.7.3上可以正常使用,但在更高或最新版本的Jenkins上无法正常工作。

Chrome控制台上的stacktrace:

Uncaught TypeError: Cannot read property 'firstChild' of undefined
at updateListBox (select.js:8)
at select.js:79
at h (hudson-behavior.js:1295)
at refillOnChange (hudson-behavior.js:1310)
at select.js:77
at Array.forEach (<anonymous>)
at behavior.js:111
at Array.forEach (<anonymous>)
at behavior.js:107
at Array.forEach (<anonymous>)

config.jelly如下所示

<f:entry field="configName" title="Choose Configuration Name">
   <table>
     <tr><td><f:select name="config_name" id="config_name" 
  onchange="updateListBox('team_info','descriptorByName/org.jenkinsci.plugins.ctc.TestAutomationBuilder/teamInfo?value='+encode(this.value))"/></td>
     <td><f:textbox disabled="true" name="config_name_name" default="${instance.getConfig_name()}"/></td></tr>
   </table>
  </f:entry>

任何帮助将不胜感激。谢谢。

0 个答案:

没有答案