Francesco Chicchiriccò created LANG-1285:
--------------------------------------------
Summary: 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)