Skip to content

Uncaught typerror; check if elements in javascript an item before checking a level deeper #2331

@Thomasvdh92

Description

@Thomasvdh92

Im getting the following exception in my browser console:

Uncaught TypeError: can't access property "classList", element is null
    visible http://localhost/static/debug_toolbar/js/utils.js:40
    init http://localhost/static/debug_toolbar/js/toolbar.js:31
    on http://localhost/static/debug_toolbar/js/utils.js:7
    on http://localhost/static/debug_toolbar/js/utils.js:4
    init http://localhost/static/debug_toolbar/js/toolbar.js:24
    <anonymous> http://localhost/static/debug_toolbar/js/toolbar.js:400
[utils.js:40:16](http://localhost/static/debug_toolbar/js/utils.js)
    visible http://localhost/static/debug_toolbar/js/utils.js:40
    init http://localhost/static/debug_toolbar/js/toolbar.js:31
    on http://localhost/static/debug_toolbar/js/utils.js:7
    (Async: EventListener.handleEvent)
    on http://localhost/static/debug_toolbar/js/utils.js:4
    init http://localhost/static/debug_toolbar/js/toolbar.js:24
    <anonymous> http://localhost/static/debug_toolbar/js/toolbar.js:400

I can't seem to trace down why this is happening, neither have I found similar problems here. The toolbar itself is visible, however, clicking on items seems to result in this error.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions