JDK-8260872 : Release Note: (fs) NullPointerException Not Thrown When First Argument to Path.of or Paths.get Is null
  • Type: Sub-task
  • Component: core-libs
  • Sub-Component: java.nio
  • Affected Version: 16
  • Priority: P4
  • Status: Closed
  • Resolution: Delivered
  • Submitted: 2021-02-01
  • Updated: 2021-05-14
  • Resolved: 2021-05-14
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 16
16Resolved
Description
The var args form of `Path.of()` and `Paths.get()` method are changed in this release to throw `NullPointerException` consistently when the first parameter is null. Historically these methods missed a null check on the first parameter when invoked with more than one parameter.