Menu

#61 NullPointerException on garbage messages

closed-fixed
None
5
2012-04-13
2006-08-12
Bryan Tripp
No

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.

Discussion

  • Bryan Tripp

    Bryan Tripp - 2006-08-12
     
  • James Agnew

    James Agnew - 2006-12-11
    • assigned_to: nobody --> jamesagnew
     
  • James Agnew

    James Agnew - 2006-12-11

    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!!

     
  • Christian Ohr

    Christian Ohr - 2012-04-13
    • status: open --> closed-fixed
     

Log in to post a comment.