You are viewing a plain text version of this content. The canonical link for it is here.
Posted to bcel-dev@jakarta.apache.org by bu...@apache.org on 2009/05/22 20:36:03 UTC

DO NOT REPLY [Bug 47248] New: org.apache.bcel.classfile.ClassParser: NullPointerException caused by fileopen failed

https://issues.apache.org/bugzilla/show_bug.cgi?id=47248

           Summary: org.apache.bcel.classfile.ClassParser:
                    NullPointerException caused by fileopen failed
           Product: BCEL
           Version: 5.2
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Main
        AssignedTo: bcel-dev@jakarta.apache.org
        ReportedBy: qweasd-v6ak@soukroma.cz


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();
                }

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bcel-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: bcel-dev-help@jakarta.apache.org


DO NOT REPLY [Bug 47248] org.apache.bcel.classfile.ClassParser: NullPointerException caused by fileopen failed

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=47248


Vít Šesták aka v6ak <qw...@soukroma.cz> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Blocks|                            |47249




-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bcel-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: bcel-dev-help@jakarta.apache.org


DO NOT REPLY [Bug 47248] org.apache.bcel.classfile.ClassParser: NullPointerException caused by fileopen failed

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=47248


Dave Brosius <db...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED




--- Comment #1 from Dave Brosius <db...@apache.org>  2009-05-22 12:30:45 PST ---
it appears that this fix already exists on trunk.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bcel-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: bcel-dev-help@jakarta.apache.org