Skip to content

Minor bug in table extension #681

@meterlongcat

Description

@meterlongcat

Good morning,

There's a minor bug in the findPrevRowNode function of the table extension. The while loop's condition is while(prev.children), which evaluates to true if children is empty (e.g. []). When this occurs the variable last is then assigned null, which throws a null pointer at if(!last.tr).

You can simply change the while loop to while(prev.children && prev.children.length) to fix this.

Browser: Google Chrome 56.0.2924.87 on Win7

Kind Regards,
MLC

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions