diff --git a/src/changes/changes.xml b/src/changes/changes.xml index d4904c451..6bc6cb15e 100644 --- a/src/changes/changes.xml +++ b/src/changes/changes.xml @@ -22,6 +22,7 @@ + Fix NullPointerException in FastDateParser$TimeZoneStrategy ordinalIndexOf("abc", "ab", 1) gives incorrect answer of -1 (correct answer should be 0); revert fix for LANG-1077 Clarify JavaDoc of StringUtils.containsAny() Add StringUtils methods to compare a string to multiple strings diff --git a/src/main/java/org/apache/commons/lang3/time/FastDateParser.java b/src/main/java/org/apache/commons/lang3/time/FastDateParser.java index 4dc897b66..a1fc82791 100644 --- a/src/main/java/org/apache/commons/lang3/time/FastDateParser.java +++ b/src/main/java/org/apache/commons/lang3/time/FastDateParser.java @@ -855,6 +855,9 @@ public class FastDateParser implements DateParser, Serializable { final TimeZone tz = TimeZone.getTimeZone(tzId); for(int i= 1; i