amazon-textract-response-parser icon indicating copy to clipboard operation
amazon-textract-response-parser copied to clipboard

Null ref on "block" parameter in Word constructor for some results

Open simonstewart opened this issue 5 years ago • 0 comments

Expected result: API result is parsed correctly.

Actual result: For some document results, the Word constructor fails due to a null ref on the block parameter. src-csharp/TextractExtensions.cs line 9. The same document works fine via the web test UI on AWS.

The calling code is : https://github.com/aws-samples/amazon-textract-response-parser/blob/master/src-csharp/TextractExtensions.cs#L318

Looks to be an issue in the API result relating to Relationships, CHILD, WORD and Id? This happens on API results from completely different source PDFs (all invoices but from separate suppliers).

simonstewart avatar May 24 '20 10:05 simonstewart