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

org.apache.bcel.classfile.ClassParser: NullPointerException caused by fileopen failed

    Details

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

      Description

      If line 119 - 127 of ClassParser.java fails (throws an Exception), the finally is executed. However, fileOwned is true and file is null. It causes NullPointerException.

      FIX:
      line 165: file.close();
      replace by:
      if(file != null)

      { file.close(); }

        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: