You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Emmanuel Bourg (JIRA)" <ji...@apache.org> on 2014/04/24 10:11:18 UTC

[jira] [Updated] (BCEL-133) org.apache.bcel.classfile.ClassParser: NullPointerException caused by invalid filename

     [ https://issues.apache.org/jira/browse/BCEL-133?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Emmanuel Bourg updated BCEL-133:
--------------------------------

         Priority: Major
      Environment:     (was: Operating System: Windows XP
Platform: PC)
    Fix Version/s: 6.0

> org.apache.bcel.classfile.ClassParser: NullPointerException caused by invalid filename
> --------------------------------------------------------------------------------------
>
>                 Key: BCEL-133
>                 URL: https://issues.apache.org/jira/browse/BCEL-133
>             Project: Commons BCEL
>          Issue Type: Bug
>          Components: Main
>    Affects Versions: 5.2
>            Reporter: Vít Šesták aka v6ak
>            Assignee: Apache Commons Developers
>             Fix For: 6.0
>
>
> 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.



--
This message was sent by Atlassian JIRA
(v6.2#6252)