Skip to content

TimeSeries.columns() throws iterator exception instead of returning empty array #186

@jtiscione

Description

@jtiscione

If a TimeSeries happens to have zero columns in it, then invoking columns() should return an empty array.

Instead it throws an exception: "Uncaught TypeError: Cannot read property 'events' of null".

Currently the only way to test for zero columns is to ask for the columns array and catch the exception from this iterator.

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