DO NOT REPLY [Bug 47249] New: org.apache.bcel.classfile.ClassParser: NullPointerException caused by invalid filename
[email protected] Fri, 22 May 2009 11:41:22 -0700 (PDT)
| Newsgroups | gmane.comp.jakarta.bcel.devel |
|---|---|
| Message-ID | <[email protected]/bugzilla/> |
https://issues.apache.org/bugzilla/show_bug.cgi?id=47249
Summary: org.apache.bcel.classfile.ClassParser:
NullPointerException caused by invalid filename
Product: BCEL
Version: 5.2
Platform: PC
OS/Version: Windows XP
Status: NEW
Severity: normal
Priority: P2
Component: Main
AssignedTo: [email protected]
ReportedBy: [email protected]
Depends on: 47248
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.
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.