Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 13100200B44 for ; Thu, 14 Jul 2016 17:24:04 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 11F71160A63; Thu, 14 Jul 2016 15:24:04 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 59047160A60 for ; Thu, 14 Jul 2016 17:24:03 +0200 (CEST) Received: (qmail 15095 invoked by uid 500); 14 Jul 2016 15:24:02 -0000 Mailing-List: contact dev-help@poi.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "POI Developers List" Delivered-To: mailing list dev@poi.apache.org Received: (qmail 15084 invoked by uid 99); 14 Jul 2016 15:24:02 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 14 Jul 2016 15:24:02 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 16AE7C18D7 for ; Thu, 14 Jul 2016 15:24:02 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -0.287 X-Spam-Level: X-Spam-Status: No, score=-0.287 tagged_above=-999 required=6.31 tests=[KAM_LAZY_DOMAIN_SECURITY=1, RP_MATCHES_RCVD=-1.287] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id LPwYTkSk9AsF for ; Thu, 14 Jul 2016 15:24:00 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTP id 6A70E5F23D for ; Thu, 14 Jul 2016 15:23:59 +0000 (UTC) Received: from asf-bz1-us-mid.priv.apache.org (unknown [162.242.174.13]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTPS id 6FFBBE0454 for ; Thu, 14 Jul 2016 15:23:58 +0000 (UTC) Received: by asf-bz1-us-mid.priv.apache.org (ASF Mail Server at asf-bz1-us-mid.priv.apache.org, from userid 33) id A33F460E14; Thu, 14 Jul 2016 15:23:41 +0000 (UTC) From: bugzilla@apache.org To: dev@poi.apache.org Subject: [Bug 59858] New: NullPointerException thrown by VBAMacroReader Date: Thu, 14 Jul 2016 15:23:56 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: POI X-Bugzilla-Component: POIFS X-Bugzilla-Version: 3.15-dev X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: brooke@usinternet.com X-Bugzilla-Status: NEW X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: dev@poi.apache.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: https://bz.apache.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 archived-at: Thu, 14 Jul 2016 15:24:04 -0000 https://bz.apache.org/bugzilla/show_bug.cgi?id=59858 Bug ID: 59858 Summary: NullPointerException thrown by VBAMacroReader Product: POI Version: 3.15-dev Hardware: All OS: All Status: NEW Severity: normal Priority: P2 Component: POIFS Assignee: dev@poi.apache.org Reporter: brooke@usinternet.com I am getting a NullPointerException when trying to extract the macro VBA from a particular Excel file. I am using org.apache.poi.poifs.macros.VBAMacroReader The following code consistently reproduces the NullPointerException: File file = new File("npe_example.xls"); VBAMacroReader reader = new VBAMacroReader(file); Map macros = reader.readMacros(); I have attached the file which causes the error. -- You are receiving this mail because: You are the assignee for the bug. --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org For additional commands, e-mail: dev-help@poi.apache.org