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 459E1200BFF for ; Tue, 3 Jan 2017 05:39:16 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 4432C160B30; Tue, 3 Jan 2017 04:39:16 +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 8B5B2160B22 for ; Tue, 3 Jan 2017 05:39:15 +0100 (CET) Received: (qmail 41532 invoked by uid 500); 3 Jan 2017 04:39:14 -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 41518 invoked by uid 99); 3 Jan 2017 04:39:14 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 03 Jan 2017 04:39:14 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id 13C20181353 for ; Tue, 3 Jan 2017 04:39:14 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -1.999 X-Spam-Level: X-Spam-Status: No, score=-1.999 tagged_above=-999 required=6.31 tests=[KAM_LAZY_DOMAIN_SECURITY=1, RP_MATCHES_RCVD=-2.999] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id pXdUXMzIbv63 for ; Tue, 3 Jan 2017 04:39:13 +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 343D55F405 for ; Tue, 3 Jan 2017 04:39:12 +0000 (UTC) Received: from asf-bz1-us-mid.priv.apache.org (nat1-us-mid.apache.org [23.253.172.122]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTPS id 167D1E00B4 for ; Tue, 3 Jan 2017 04:39:10 +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 17D5E60DC9; Tue, 3 Jan 2017 04:39:08 +0000 (UTC) From: bugzilla@apache.org To: dev@poi.apache.org Subject: [Bug 60484] NullPointerException at org.apache.poi.hwpf.usermodel.Picture.getRawContent Date: Tue, 03 Jan 2017 04:39:08 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: POI X-Bugzilla-Component: HWPF X-Bugzilla-Version: 3.15-FINAL X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: onealj@apache.org X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: FIXED X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: dev@poi.apache.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: resolution bug_status Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bz.apache.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 archived-at: Tue, 03 Jan 2017 04:39:16 -0000 https://bz.apache.org/bugzilla/show_bug.cgi?id=3D60484 Javen O'Neal changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |FIXED Status|NEEDINFO |RESOLVED --- Comment #3 from Javen O'Neal --- Thanks for attaching a problematic document. I was able to reproduce the NPE with your attachment by adding the doc file= to test-data/document and using TestWordToConverterSuite.java. Since this is just an NPE and it looks like the submitted file may have some personal information in it, I don't think we need to include this file in o= ur unit test corpus. > Testcase: testHtml[88: /home/onealj/Downloads/poi/trunk/test-data/documen= t/../document/60484.doc] took 0.063 sec > Caused an ERROR > null > java.lang.NullPointerException > at org.apache.poi.hwpf.usermodel.Picture.getRawContent(Picture.java:424) > at org.apache.poi.hwpf.usermodel.Picture.fillImageContent(Picture.java:= 133) > at org.apache.poi.hwpf.usermodel.Picture.(Picture.java:124) > at org.apache.poi.hwpf.model.PicturesTable.extractPicture(PicturesTable= .java:162) > at org.apache.poi.hwpf.converter.AbstractWordConverter.processCharacter= s(AbstractWordConverter.java:489) > at org.apache.poi.hwpf.converter.AbstractWordConverter.processField(Abs= tractWordConverter.java:906) > at org.apache.poi.hwpf.converter.AbstractWordConverter.processCharacter= s(AbstractWordConverter.java:430) > at org.apache.poi.hwpf.converter.WordToHtmlConverter.processParagraph(W= ordToHtmlConverter.java:576) > at org.apache.poi.hwpf.converter.AbstractWordConverter.processParagraph= es(AbstractWordConverter.java:1113) > at org.apache.poi.hwpf.converter.WordToHtmlConverter.processTable(WordT= oHtmlConverter.java:683) > at org.apache.poi.hwpf.converter.AbstractWordConverter.processParagraph= es(AbstractWordConverter.java:1075) > at org.apache.poi.hwpf.converter.WordToHtmlConverter.processSingleSecti= on(WordToHtmlConverter.java:608) > at org.apache.poi.hwpf.converter.AbstractWordConverter.processDocument(= AbstractWordConverter.java:721) > at org.apache.poi.hwpf.converter.TestWordToConverterSuite.testHtml(Test= WordToConverterSuite.java:112) same error for testText and testFO. NPE caused by getBlipRecord returning null. [1] > ( (EscherBSERecord) escherRecord ).getBlipRecord().getPicturedata(); I changed this in r1777063 to return byte[0] if getBlipRecord() returns nul= l. [1] https://svn.apache.org/viewvc/poi/trunk/src/scratchpad/src/org/apache/poi/h= wpf/usermodel/Picture.java?revision=3D1751007&view=3Dmarkup#l402 --=20 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