Uploaded image for project: 'Commons BCEL'
  1. Commons BCEL
  2. BCEL-133

org.apache.bcel.classfile.ClassParser: NullPointerException caused by invalid filename

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 5.2
    • Fix Version/s: 6.0
    • Component/s: Main
    • Labels:
      None

      Description

      121: ZipEntry entry = zip.getEntry(file_name);
      Problem: if file_name is invalid, zip.getEntry(file_name) returns null. It causes NullPointerException:
      122: file = new DataInputStream(new BufferedInputStream(zip.getInputStream(entry),
      BUFSIZE));
      // zip.getInputStream(entry) throws NullPointerException because entry is null!

      Note that you will probably see another NullPointerException if #47248 is not corrected.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                issues@commons.apache.org Apache Commons Developers
                Reporter:
                org.apache-bugs-no-private-mail@reg.v6ak.com Vít Šesták aka v6ak
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: