Skip to content

TypeError: Cannot read properties of null (reading 'length') #108

@amcintyre98

Description

@amcintyre98

Running your latest release 2.0.12 with node v20.16 on z/OS.

This code has been working fine with only this single issue (one time failed). Ran a 2nd time and worked so sounds performance related.

memb = await za.downloadDataset(dsn + '(' + ent.name + ')')
mems = memb.toString()
mcnt = mems.match(/\n/g).length

One time got this error. Rerunning with same input works fine.
mcnt = mems.match(/\n/g).length
¬
TypeError: Cannot read properties of null (reading 'length')
at main (/XSYS/u/z1234567/genxlsx.js:230:31)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)

thanks,
Andrew

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