Uploaded image for project: 'Commons Lang'
  1. Commons Lang
  2. LANG-1285

NullPointerException in FastDateParser$TimeZoneStrategy

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.5
    • 3.6
    • lang.time.*
    • None
    • Centos 7, en_GB locale

    Description

      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:

      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)
      

      Attachments

        Issue Links

          Activity

            People

              pascalschumacher Pascal Schumacher
              ilgrosso Francesco Chicchiriccò
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: