You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-dev@xmlgraphics.apache.org by bu...@apache.org on 2006/01/13 18:29:50 UTC
DO NOT REPLY [Bug 38263] New: - NullPointerException at LineLayoutManager.findHyphenationPoints
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=38263>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=38263
Summary: NullPointerException at
LineLayoutManager.findHyphenationPoints
Product: Fop
Version: 0.90
Platform: Other
OS/Version: Windows 2000
Status: NEW
Severity: normal
Priority: P2
Component: general
AssignedTo: fop-dev@xmlgraphics.apache.org
ReportedBy: franck.schmidlin@anite.com
in the source for 0.90 alpha 1:
org.apache.fop.layoutmgr.inline.LineLayoutManager line 1481 reads
currLM.getWordChars(sbChars, firstElement.getPosition());
This causes a NullPointer exception because currLM never gets a chance to be
initialised.
line 1466 reads
if (firstElement.getLayoutManager() != currLM)
If currLM is still null, and firstElement.getLayoutManager() is also null, then
currLM will not be initialised by the content of the if statement.
A quick fix seems to be replacing
- if (firstElement.getLayoutManager() != currLM)
with
+ if (currLM == null || firstElement.getLayoutManager() != currLM)
This has cured the problem with my test.
I attach the FO file that reproduce the problem.
It could be that the syntax I used is not correct, in which case I would
appreciate comments on how to do it bettwe.
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
DO NOT REPLY [Bug 38263] - NullPointerException at LineLayoutManager.findHyphenationPoints
Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=38263>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=38263
------- Additional Comments From franck.schmidlin@anite.com 2006-01-13 18:31 -------
Created an attachment (id=17418)
--> (http://issues.apache.org/bugzilla/attachment.cgi?id=17418&action=view)
FO sample that reproduce the NullPointer exception
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
DO NOT REPLY [Bug 38263] - NullPointerException at LineLayoutManager.findHyphenationPoints
Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=38263>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=38263
spepping@leverkruid.nl changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
------- Additional Comments From spepping@leverkruid.nl 2006-01-13 21:16 -------
The NPE is indeed thrown in version 0.90alpha1. The problem is no longer present
in the latest release, version 0.91beta.
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.