[JBoss JIRA] (GTNCOMMON-17) NPE when decode a value encoded from latin character
by Khoi Nguyen (Created) (JIRA)
NPE when decode a value encoded from latin character
----------------------------------------------------
Key: GTNCOMMON-17
URL: https://issues.jboss.org/browse/GTNCOMMON-17
Project: GateIn Common
Issue Type: Bug
Reporter: Khoi Nguyen
Attachments: encoder.patch
I used FastURLEncoder to encode some value like '%FF%EE', however I got a NullPointerException as following
{code}
java.lang.NullPointerException
at org.gatein.common.text.FastURLDecoder$LookupNonTerm.access$100(FastURLDecoder.java:267)
at org.gatein.common.text.FastURLDecoder.safeEncode(FastURLDecoder.java:215)
at org.gatein.common.text.AbstractCharEncoder.encode(AbstractCharEncoder.java:87)
at org.gatein.common.http.TestDecode.main(TestDecode.java:46)
{code}
I also attach a patch for testcase. Look at on it please
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
14 years, 6 months