Skip to content

NullpointerException forces the ZUGFeRDInvoiceImporter to crash #889

@JackMigger

Description

@JackMigger

Hi,

I believe that I have found a serious error in the file ZUGFeRDInvoiceImporter.java (line >1009 ..., version 2.17.0). CrossIndustryInvoice CII.

It is possible that the variable “chargeAmount” contains NULL and the flag ‘isCharge’ is nevertheless “true”.

The expression in line 1010 "Charge c = new Charge(new BigDecimal(chargeAmount));" returns a NullPointerException
"Cannot invoke "String.toCharArray()" because "val" is null"

-> “Failed to parse PDF”

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