This is an automated email from the ASF dual-hosted git repository. ggregory pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/commons-lang.git
The following commit(s) were added to refs/heads/master by this push: new af27d810d Fix my mistake new 73a99e2be Merge branch 'master' of https://gitbox.apache.org/repos/asf/commons-lang.git af27d810d is described below commit af27d810d3c045c0bfe901680d03bdde5f99251d Author: Gary Gregory <garydgreg...@gmail.com> AuthorDate: Tue Jan 10 15:57:08 2023 -0500 Fix my mistake --- src/main/java/org/apache/commons/lang3/time/DateFormatUtils.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/apache/commons/lang3/time/DateFormatUtils.java b/src/main/java/org/apache/commons/lang3/time/DateFormatUtils.java index bc80d907e..0439d7aa3 100644 --- a/src/main/java/org/apache/commons/lang3/time/DateFormatUtils.java +++ b/src/main/java/org/apache/commons/lang3/time/DateFormatUtils.java @@ -411,7 +411,7 @@ public class DateFormatUtils { } private static TimeZone getTimeZone(final Calendar calendar) { - return ObjectUtils.get(calendar, Calendar::getTimeZone); + return calendar == null ? null : calendar.getTimeZone(); } }