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

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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Blocker
    • Resolution: Fixed
    • 5.2
    • 6.0
    • Main
    • 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

              issues@commons.apache.org Apache Commons Developers
              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: