-
Bug
-
Resolution: Fixed
-
Critical
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.
[JENKINS-15494] Uncaught TypeError: Cannot read property 'firstChild' of null
Description |
Original:
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. |
New:
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. |
Priority | Original: Major [ 3 ] | New: Critical [ 2 ] |
Resolution | New: Fixed [ 1 ] | |
Status | Original: Open [ 1 ] | New: Resolved [ 5 ] |
Apparently a regression between 1.447 and 1.466.