Return-Path: X-Original-To: apmail-commons-issues-archive@minotaur.apache.org Delivered-To: apmail-commons-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 189A1119C6 for ; Thu, 24 Apr 2014 08:11:35 +0000 (UTC) Received: (qmail 86178 invoked by uid 500); 24 Apr 2014 08:11:24 -0000 Delivered-To: apmail-commons-issues-archive@commons.apache.org Received: (qmail 85884 invoked by uid 500); 24 Apr 2014 08:11:19 -0000 Mailing-List: contact issues-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: issues@commons.apache.org Delivered-To: mailing list issues@commons.apache.org Received: (qmail 85804 invoked by uid 99); 24 Apr 2014 08:11:18 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 24 Apr 2014 08:11:18 +0000 Date: Thu, 24 Apr 2014 08:11:18 +0000 (UTC) From: "Emmanuel Bourg (JIRA)" To: issues@commons.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (BCEL-133) org.apache.bcel.classfile.ClassParser: NullPointerException caused by invalid filename MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/BCEL-133?page=3Dcom.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 inv= alid 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=C3=ADt =C5=A0est=C3=A1k aka v6ak > Assignee: Apache Commons Developers > Fix For: 6.0 > > > 121: ZipEntry entry =3D zip.getEntry(file_name); > Problem: if file_name is invalid, zip.getEntry(file_name) returns null. I= t causes NullPointerException: > 122: file =3D new DataInputStream(new BufferedInputStream(zip.getInputStr= eam(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)