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

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P4
    • 15
    • Affects Version/s: 15
    • Component/s: 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.

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

              Created:
              Updated:
              Resolved: