[
https://issues.apache.org/jira/browse/BCEL-132?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Emmanuel Bourg updated BCEL-132:
--------------------------------
Priority: Blocker
Environment: (was: Operating System: Windows XP
Platform: PC)
Fix Version/s: 6.0
> org.apache.bcel.classfile.ClassParser: NullPointerException caused by
> fileopen failed
> -------------------------------------------------------------------------------------
>
> Key: BCEL-132
> URL: https://issues.apache.org/jira/browse/BCEL-132
> Project: Commons BCEL
> Issue Type: Bug
> Components: Main
> Affects Versions: 5.2
> Reporter: Vít Šesták aka v6ak
> Assignee: Apache Commons Developers
> Priority: Blocker
> Fix For: 6.0
>
>
> 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();
> }
--
This message was sent by Atlassian JIRA
(v6.2#6252)