[gatein-issues] [JBoss JIRA] (GTNCOMMON-17) NPE when decode a value encoded from latin character
Vu Viet Phuong (JIRA)
jira-events at lists.jboss.org
Wed May 15 00:07:07 EDT 2013
[ https://issues.jboss.org/browse/GTNCOMMON-17?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12774351#comment-12774351 ]
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
More information about the gatein-issues
mailing list