Via email from Rick Riemer:
Hi,
I’ve been running some tests with HAPI recently and ran into a
NullPointerException when sending “garbage” messages. What happens is
that the GenericParser class cannot recognize the encoding (it’s not XML
nor ER7) and thus the supportsEncoding() method gets null as input,
which it can’t handle.
I’ve created a patch against the latest code from CVS to fix the problem.
The code can now handle unrecognized (null) encodings.
<<garbage_message_fix.patch>>
I hope this fix has some use in the codebase.
Logged In: YES
user_id=881509
Originator: NO
I've applied the patch to GenericParser, and I will test it and add it to the next release.
Thanks for the patch!!