Skip to content

erroredFunction should also handle null?Β #29

@fliespl

Description

@fliespl

When error as such appears in log: Uncaught TypeError: Cannot read property 'xxx' of undefined

JQMH also errors out, because erroredFunction is null and null is equal to object.

                if ( typeof erroredFunction !== 'object' || typeof erroredFunction[1] === "undefined" || -1 === jQueryFunctions.indexOf( erroredFunction[1] ) ) {
                    return true;
                }

Error caused:

Uncaught TypeError: Cannot read property '1' of null
    at window.onerror ((index):139)
window.onerror @ (index):139
error (async)
(anonymous) @ (index):115

Probably null should also be checked, when no matches are found?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions