You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2016/11/16 06:09:58 UTC

[jira] [Commented] (LANG-1285) NullPointerException in FastDateParser$TimeZoneStrategy

    [ https://issues.apache.org/jira/browse/LANG-1285?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15669558#comment-15669558 ] 

ASF GitHub Bot commented on LANG-1285:
--------------------------------------

GitHub user ilgrosso opened a pull request:

    https://github.com/apache/commons-lang/pull/212

    [LANG-1285] Replicate the fix for LANG-1186

    

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/ilgrosso/commons-lang master

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/commons-lang/pull/212.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #212
    
----
commit b61c9b3594bec226dd26ef9af966ebaa6ebf78dc
Author: Francesco Chicchiriccò <il...@apache.org>
Date:   2016-11-16T06:07:43Z

    [LANG-1285] Replicate the fix for LANG-1186

----


> NullPointerException in FastDateParser$TimeZoneStrategy
> -------------------------------------------------------
>
>                 Key: LANG-1285
>                 URL: https://issues.apache.org/jira/browse/LANG-1285
>             Project: Commons Lang
>          Issue Type: Bug
>          Components: lang.time.*
>    Affects Versions: 3.5
>         Environment: Centos 7, en_GB locale
>            Reporter: Francesco Chicchiriccò
>             Fix For: 3.6
>
>
> It seems that after LANG-1186 was fixed, and before 3.5 went out, the bug was re-introduced.
> One of my customers is getting the following error (I am actually not able to reproduce it) with 3.5:
> {code}
> java.lang.NullPointerException
>         at org.apache.commons.lang3.time.FastDateParser$TimeZoneStrategy.<init>(FastDateParser.java:869)
>         at org.apache.commons.lang3.time.FastDateParser.getLocaleSpecificStrategy(FastDateParser.java:637)
>         at org.apache.commons.lang3.time.FastDateParser.getStrategy(FastDateParser.java:606)
>         at org.apache.commons.lang3.time.FastDateParser.access$100(FastDateParser.java:73)
>         at org.apache.commons.lang3.time.FastDateParser$StrategyParser.letterPattern(FastDateParser.java:234)
>         at org.apache.commons.lang3.time.FastDateParser$StrategyParser.getNextStrategy(FastDateParser.java:220)
>         at org.apache.commons.lang3.time.FastDateParser.init(FastDateParser.java:167)
>         at org.apache.commons.lang3.time.FastDateParser.<init>(FastDateParser.java:153)
>         at org.apache.commons.lang3.time.FastDateFormat.<init>(FastDateFormat.java:394)
>         at org.apache.commons.lang3.time.FastDateFormat.<init>(FastDateFormat.java:378)
>         at org.apache.commons.lang3.time.FastDateFormat$1.createInstance(FastDateFormat.java:100)
>         at org.apache.commons.lang3.time.FastDateFormat$1.createInstance(FastDateFormat.java:97)
>         at org.apache.commons.lang3.time.FormatCache.getInstance(FormatCache.java:81)
>         at org.apache.commons.lang3.time.FastDateFormat.getInstance(FastDateFormat.java:128)
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)