You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@poi.apache.org by bu...@apache.org on 2009/04/09 15:48:03 UTC
DO NOT REPLY [Bug 47008] New: NullPointerException when calling
getText() from TextExtractor
https://issues.apache.org/bugzilla/show_bug.cgi?id=47008
Summary: NullPointerException when calling getText() from
TextExtractor
Product: POI
Version: 3.5-dev
Platform: PC
OS/Version: Windows Vista
Status: NEW
Severity: normal
Priority: P2
Component: POI Overall
AssignedTo: dev@poi.apache.org
ReportedBy: tiago.cavaleiro@xpand-it.com
Created an attachment (id=23471)
--> (https://issues.apache.org/bugzilla/attachment.cgi?id=23471)
The ppt that contains a shape (throws NullPointerException)
This problem happens when having extracting text from a .ppt file.
Appears that the problems resides when extracting text from shapes, since I've
made a simple test with a .ppt with a simple shape with text (test1) and
another test with .ppt without the shape but with the same text (test2).
On test1 we get a NullPointerException
(org.apache.poi.hslf.model.SimpleShape.getClientRecords(SimpleShape.java:322))
and on test2 we get the desired text.
Another thing is that when saving the test1 presentation has a .pptx file and
then running a third test using that file, we get the desired result.
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- 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
DO NOT REPLY [Bug 47008] NullPointerException when calling getText()
from TextExtractor
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=47008
--- Comment #2 from Tiago <ti...@xpand-it.com> 2009-04-09 06:50:41 PST ---
Created an attachment (id=23473)
--> (https://issues.apache.org/bugzilla/attachment.cgi?id=23473)
The pptx that contains a shape and runs OK
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- 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
DO NOT REPLY [Bug 47008] NullPointerException when calling getText()
from TextExtractor
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=47008
--- Comment #3 from Tiago <ti...@xpand-it.com> 2009-04-09 07:08:44 PST ---
Created an attachment (id=23474)
--> (https://issues.apache.org/bugzilla/attachment.cgi?id=23474)
Test case
Test case: pointing out the .ppt that throws NullPointerException
Referenced libraries are:
poi-3.5-beta5-20090219.jar
poi-contrib-3.5-beta5-20090219.jar
poi-ooxml-3.5-beta5-20090219.jar
poi-scratchpad-3.5-beta5-20090219.jar
log4j.jar
dom4j.jar
ooxml-schemas-1.0.jar
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- 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
DO NOT REPLY [Bug 47008] NullPointerException when calling getText()
from TextExtractor
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=47008
--- Comment #1 from Tiago <ti...@xpand-it.com> 2009-04-09 06:49:49 PST ---
Created an attachment (id=23472)
--> (https://issues.apache.org/bugzilla/attachment.cgi?id=23472)
The ppt that doesn't contains a shape (all OK)
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- 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
DO NOT REPLY [Bug 47008] NullPointerException when calling getText()
from TextExtractor
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=47008
Yegor Kozlov <ye...@dinom.ru> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |INVALID
--- Comment #4 from Yegor Kozlov <ye...@dinom.ru> 2009-06-19 07:23:42 PST ---
The problem is not reproducible with current trunk. The test case successfully
runs against all the attached files.
Yegor
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- 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