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

This issue is archived. You can view it, but you can't modify it. Learn more

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)

            Assignee:
            Mark Waite
            Reporter:
            James Nord
            Archiver:
            Jenkins Service Account

              Created:
              Updated:
              Resolved:
              Archived: