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

nodelabelparameter/lib/nodelabel.js, line 48: TypeError: document.querySelector(...) is null

XMLWordPrintable

    • 1.10.1

      The ATH is failing (relatively reliably in OSS, but not locally) presumably due to a timing issue.

      Failure is due to 
      JavaScript error: http://127.0.0.1:65293/static/659022bd/plugin/nodelabelparameter/lib/nodelabel.js, line 48: TypeError: document.querySelector(...) is null

      https://github.com/jenkinsci/nodelabelparameter-plugin/blob/5c9da6313133f254b9ce3eb60712afd3294bd6ca/src/main/webapp/lib/nodelabel.js#L48

      it may be that the page is being unloaded immediatly after being loaded, or that the ready condition is not correct.  

      Possibly the code should be more defensive (check the element is not null before checking a property of it)

            markewaite Mark Waite
            teilo James Nord
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: