mirror of
https://github.com/apache/commons-lang.git
synced 2025-02-11 04:25:07 +00:00
LANG-1285: NullPointerException in FastDateParser$TimeZoneStrategy (closes #212)
Replicate the fix for LANG-1186
This commit is contained in:
parent
fd80301b1e
commit
c14890f08b
@ -866,11 +866,13 @@ private static class TzInfo {
|
|||||||
tzInfo = standard;
|
tzInfo = standard;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
final String key = zoneNames[i].toLowerCase(locale);
|
if (zoneNames[i] != null) {
|
||||||
// ignore the data associated with duplicates supplied in
|
final String key = zoneNames[i].toLowerCase(locale);
|
||||||
// the additional names
|
// ignore the data associated with duplicates supplied in
|
||||||
if (sorted.add(key)) {
|
// the additional names
|
||||||
tzNames.put(key, tzInfo);
|
if (sorted.add(key)) {
|
||||||
|
tzNames.put(key, tzInfo);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user