commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From NickManley <>
Subject [GitHub] commons-lang pull request: LANG-1186 Fix NullPointerException in F...
Date Fri, 20 Nov 2015 05:34:58 GMT
GitHub user NickManley opened a pull request:

    LANG-1186 Fix NullPointerException in FastDateParser$TimeZoneStrategy

    Java 8u60 has a change where `DateFormatSymbols.getZoneStrings` returns arrays with 7
elements instead of 5 like it previously had. For some locales, the additional two elements
are null.
    Example from the unit tests:
    Running org.apache.commons.lang3.time.FastDateParser_TimeZoneStrategyTest
    Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.597 sec <<<
FAILURE! - in org.apache.commons.lang3.time.FastDateParser_TimeZoneStrategyTest
 Time elapsed: 0.597 sec  <<< ERROR!
    java.lang.NullPointerException: null
    	at org.apache.commons.lang3.time.FastDateParser$TimeZoneStrategy.<init>(
    	at org.apache.commons.lang3.time.FastDateParser.getLocaleSpecificStrategy(
    	at org.apache.commons.lang3.time.FastDateParser.getStrategy(
    	at org.apache.commons.lang3.time.FastDateParser.access$100(
    	at org.apache.commons.lang3.time.FastDateParser$StrategyParser.letterPattern(
    	at org.apache.commons.lang3.time.FastDateParser$StrategyParser.getNextStrategy(
    	at org.apache.commons.lang3.time.FastDateParser.init(
    	at org.apache.commons.lang3.time.FastDateParser.<init>(
    	at org.apache.commons.lang3.time.FastDateParser.<init>(
    	at org.apache.commons.lang3.time.FastDateParser_TimeZoneStrategyTest.testTimeZoneStrategyPattern(

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

    $ git pull master

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

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

    This closes #117
commit 5556026ed1dc17e70946a4a030842ade3a33baeb
Author: Nick Manley <>
Date:   2015-11-20T05:24:05Z

    Fix NullPointerException in FastDateParser$TimeZoneStrategy


If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at or file a JIRA ticket
with INFRA.

View raw message