Skip to content

'substr' of null #1

@vorg

Description

@vorg

I've been trying to parse some of my statements from 2014 and i'm getting this error

TypeError: Cannot read property 'substr' of null
    at renderers.csv2 (/usr/local/lib/node_modules/hsbc-statement-parser/hsbcextr.js:25:33)

If I console.log the sta variable i see it completely empty

{ filePath: 'json',
  acctNum: null,
  dateFrom: null,
  dateTo: null,
  balFrom: null,
  balTo: null,
  totDebit: null,
  totCredit: null,
  ops: [] }

I'm running the command as following:

./hsbcextr.sh json /Users/name/Dropbox/1412.pdf

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