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

Null pointer exception in ZipFileSystemProvider

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P2
    • Resolution: Withdrawn
    • Affects Version/s: 9
    • Fix Version/s: None
    • Component/s: core-libs
    • Labels:
      None

      Description

      Simple to fix NPE. Here's the fix:

      --- a/src/jdk.zipfs/share/classes/jdk/nio/zipfs/ZipFileSystemProvider.java Tue Feb 09 14:07:28 2016 -0800
      +++ b/src/jdk.zipfs/share/classes/jdk/nio/zipfs/ZipFileSystemProvider.java Fri Feb 12 12:59:46 2016 -0800
      @@ -100,7 +100,7 @@
                   }
                   ZipFileSystem zipfs = null;
                   try {
      - if (env.containsKey("multi-release")) {
      + if (env != null && env.containsKey("multi-release")) {
                           zipfs = new JarFileSystem(this, path, env);
                       } else {
                           zipfs = new ZipFileSystem(this, path, env);

        Attachments

          Activity

            People

            • Assignee:
              sdrach Steve Drach (Inactive)
              Reporter:
              sdrach Steve Drach (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: