Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8242292

(fs) FileSystems.getFileSystem(URI) should throw IAE if the URI scheme is null

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 15
    • 15
    • core-libs
    • b19
    • generic
    • generic
    • Verified

      If the scheme is null, FileSystems.getFileSystem(URI) will currently throw a mysterious NullPointerException. The package documentation for java.nio.file indicates that NPEs will in general be thrown if a parameter is null or an array or collection contains a null element, but this case does not meet those conditions. Also, using the URI as the detail message of an IAE could provide debugging clues.

            bpb Brian Burkhalter
            bpb Brian Burkhalter
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: