commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Emmanuel Bourg (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (BCEL-133) org.apache.bcel.classfile.ClassParser: NullPointerException caused by invalid filename
Date Thu, 24 Apr 2014 08:11:18 GMT

     [ 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)

Mime
View raw message