Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-15494

Uncaught TypeError: Cannot read property 'firstChild' of null

    Details

    • Similar Issues:

      Description

      Under some conditions adding a dynamic section to a configuration screen fails with the abovementioned error. In renderOnDemand, c.innerHTML = "<TABLE><TBODY>"+t.responseText+"</TBODY></TABLE>"; succeeds yet immediately afterwards c.firstChild is a HTMLLinkElement rather than the expected HTMLTableElement:

      <link rel="stylesheet" href="/adjuncts/…/lib/form/section_.css" type="text/css">
      

      The second child is indeed the expected table, so something inserted this link element at the top.

      Uri Scheiner says this occurred for him due to <f:advanced> under a separated <f:section>, yet it seems to occur under other circumstances as well.

        Attachments

          Activity

          jglick Jesse Glick created issue -
          jglick Jesse Glick made changes -
          Field Original Value New Value
          Description Under some conditions adding a dynamic section to a configuration screen fails with the abovementioned error. In {{renderOnDemand}}, {{c.innerHTML = "<TABLE><TBODY>"+t.responseText+"</TBODY></TABLE>";}} succeeds yet immediately afterwards {{c.firstChild}} is a {{HTMLLinkElement}} rather than the expected {{HTMLTableElement}}:

          {code:xml}
          <link rel="stylesheet" href="/adjuncts/…/lib/form/section_.css" type="text/css">
          {code}

          The second child is indeed the expected table, so something inserted this link element at the top.

          Uri Scheiner says this occurred for him due to {{<f:advanced>}} under a separated {{<f:section>}}, yet it seems to occur under other circumstances as well.
          Under some conditions adding a dynamic section to a configuration screen fails with the abovementioned error. In {{renderOnDemand}}, {{c.innerHTML = "<TABLE><TBODY>"\+t.responseText\+"</TBODY></TABLE>";}} succeeds yet immediately afterwards {{c.firstChild}} is a {{HTMLLinkElement}} rather than the expected {{HTMLTableElement}}:

          {code:xml}
          <link rel="stylesheet" href="/adjuncts/…/lib/form/section_.css" type="text/css">
          {code}

          The second child is indeed the expected table, so something inserted this link element at the top.

          Uri Scheiner says this occurred for him due to {{<f:advanced>}} under a separated {{<f:section>}}, yet it seems to occur under other circumstances as well.
          jglick Jesse Glick made changes -
          Priority Major [ 3 ] Critical [ 2 ]
          scm_issue_link SCM/JIRA link daemon made changes -
          Status Open [ 1 ] Resolved [ 5 ]
          Resolution Fixed [ 1 ]
          jglick Jesse Glick made changes -
          Labels javascript jelly 1.480.4-candidate javascript jelly
          jglick Jesse Glick made changes -
          Labels 1.480.4-candidate javascript jelly javascript jelly lts-candidate
          vjuranek vjuranek made changes -
          Labels javascript jelly lts-candidate 1.509.1-fixed javascript jelly
          rtyler R. Tyler Croy made changes -
          Workflow JNJira [ 146250 ] JNJira + In-Review [ 191843 ]

            People

            • Assignee:
              Unassigned
              Reporter:
              jglick Jesse Glick
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: