Hi All,

Just a quick note to let everyone know that a new build of HAPI has been
uploaded to Sourceforge, HAPI 1.0.1.

This release is just to fix a single issue, nothing else has been changed.
As Murphy's law would have it, no sooner than we released a new version, a
fairly significant bug (for a particular obscure circumstance) surfaced.
Thanks to Irving Reid for pointing this one out.

The bug is a NullPointerException during PipeParser's parse method, when
parsing a message that is missing a mandatory segment in a group at the end
of the message. By way of illustration, consider the v2.5 ADT^A45 message,
which has the structure:

MSH
[ { SFT } ]
EVN
PID
[ PD1 ]
   { MERGE_INFO
   MRG
   PV1
   } MERGE_INFO

When parsing this message, if the MRG segment is missing, but the PV1
segment is present, the parser will crash. Obviously, the message is not
valid without this MRG segment anyhow, but equally obviously HAPI shouldn't
crash when it encounters unusual messages.

If you are not using PipeParser#parse(), or if you do not need to handle
invalid messages, you do not need to upgrade. Otherwise, if you are using
HAPI 1.0, you probably should. Note that this bug does not affect previous
releases of HAPI.

Cheers,
James
------------------------------------------------------------------------------

_______________________________________________
Hl7api-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/hl7api-devel

Reply via email to