[JBoss JIRA] (GTNCOMMON-17) NPE when decode a value encoded from latin character
by Vu Viet Phuong (JIRA)
[ https://issues.jboss.org/browse/GTNCOMMON-17?page=com.atlassian.jira.plug... ]
Vu Viet Phuong commented on GTNCOMMON-17:
-----------------------------------------
here is the PR: https://github.com/gatein/gatein-common/pull/3
that help to catch the exeption when decoding wrong characters
> 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
For more information on JIRA, see: http://www.atlassian.com/software/jira
12 years, 10 months