UHIN / x12-parser-library

MIT License
15 stars 15 forks source link

Fix for exception being thrown on poor HL segment #4

Closed behrhartuhin closed 4 years ago

behrhartuhin commented 4 years ago

Occasionally a file does not have an HL02, this is improper X12 but should not make the parser throw an exception.

This was mostly handled before with "if (strlen($hlParentId) > 0) {" but it the accessing HL02 when not existing will throw an exception