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: [email protected] ReportedBy: [EMAIL PROTECTED] 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.
