RFR: 8177418: TimeZone.getTimeZone(String id) throws NullPointerException when id is null

Naoto Sato naoto at openjdk.org
Mon Jan 9 16:03:52 UTC 2023


On Fri, 6 Jan 2023 22:38:13 GMT, Justin Lu <duke at openjdk.org> wrote:

> When ID is null, TimeZone.getTimeZone(String ID) throws a NullPointerException.
> 
> For example, 
> 
> 
> String someID = null;
> TimeZone tz1 = TimeZone.getTimeZone(someID);
> ``` 
> 
> throws a `NullPointerException`
> 
> This change updates the documentation to make this apparent.

LGTM. Please file a CSR as Lance suggested.

-------------

Marked as reviewed by naoto (Reviewer).

PR: https://git.openjdk.org/jdk/pull/11888


More information about the core-libs-dev mailing list