ZUGFeRD / mustangproject

Open Source Java e-Invoicing library, validator and tool (Factur-X/ZUGFeRD, UNCEFACT/CII XRechnung)
http://www.mustangproject.org
Apache License 2.0
201 stars 113 forks source link

handle read from empty file #367

Closed hduelme closed 5 months ago

hduelme commented 5 months ago

I added a check if the file to read from is empty if yes a error is reported. In addition I use Arrays.equals to check if the first 4 bytes match a PDF-file.

jstaerk commented 5 months ago

thanks!