DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=25005>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=25005

Null pointer Exception in LineArea.addText(LineArea.java:855)

           Summary: Null pointer Exception in
                    LineArea.addText(LineArea.java:855)
           Product: Fop
           Version: 0.20.5
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: Major
          Priority: Other
         Component: page-master/layout
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


The problem arise each time when I trying to put long  tag <fo:inline> inside  
<fo:list-item-body start-indent="body-start()"> .  “Long tag <fo:inline>  ” – 
it string which  larger when page-width. 
In this situation FOP crashes with Following error messages: [ERROR]: null. 


<?xml version="1.0" encoding="Windows-1251"?>

<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format";>
<fo:layout-master-set>
    <fo:simple-page-master master-name="cover"
        page-height="12cm"
        page-width="12cm"
        margin-top="0.5cm"
        margin-bottom="0.5cm"
        margin-left="1cm"
        margin-right="0.5cm">
<fo:region-body
                        margin-top="1.1cm"
                        margin-bottom="1.1cm" />
    </fo:simple-page-master>
</fo:layout-master-set>
  <fo:page-sequence master-reference="cover">
   <fo:flow flow-name="xsl-region-body">
         <fo:block >
            <fo:list-block>
     <fo:list-item>
      <fo:list-item-label end-indent="label-end()">
       <fo:block>1.</fo:block>
      </fo:list-item-label>
      <fo:list-item-body start-indent="body-start()">
       <fo:inline font-
family="arial">iiissddddddddddddddddddddddddddddddddssssssssssssssssssssssssssss
sssssssssss</fo:inline>
      </fo:list-item-body>
     </fo:list-item>
    </fo:list-block>
</fo:block>
      
  </fo:flow>
  </fo:page-sequence>
  
</fo:root>  


Here log information:

[INFO] Using org.apache.xerces.parsers.SAXParser as SAX2 Parser
[INFO] Using org.apache.xerces.parsers.SAXParser as SAX2 Parser
[INFO] FOP 0.20.5
[INFO] Using org.apache.xerces.parsers.SAXParser as SAX2 Parser
[INFO] building formatting object tree
[INFO] setting up fonts
[INFO] [1]
[INFO] Using org.apache.xerces.parsers.SAXParser as SAX2 Parser
[INFO] Using org.apache.xerces.parsers.SAXParser as SAX2 Parser
[ERROR] null

java.lang.NullPointerException
        at org.apache.fop.layout.LineArea.addText(LineArea.java:855)
        at org.apache.fop.fo.FOText.addRealText(FOText.java:278)
        at org.apache.fop.fo.FOText.addText(FOText.java:252)
        at org.apache.fop.fo.FOText.layout(FOText.java:161)
        at org.apache.fop.fo.FObjMixed.layout(FObjMixed.java:139)
        at org.apache.fop.fo.flow.ListItemBody.layout(ListItemBody.java:118)
        at org.apache.fop.fo.flow.ListItem.layout(ListItem.java:203)
        at org.apache.fop.fo.flow.ListBlock.layout(ListBlock.java:201)
        at org.apache.fop.fo.flow.Block.layout(Block.java:257)
        at org.apache.fop.fo.flow.AbstractFlow.layout(AbstractFlow.java:154)
        at org.apache.fop.fo.flow.AbstractFlow.layout(AbstractFlow.java:110)
        at org.apache.fop.fo.pagination.PageSequence.makePage
(PageSequence.java:400)
        at org.apache.fop.fo.pagination.PageSequence.format
(PageSequence.java:338)
        at org.apache.fop.apps.StreamRenderer.render(StreamRenderer.java:262)
        at org.apache.fop.fo.FOTreeBuilder.endElement(FOTreeBuilder.java:223)
        at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown 
Source)
        at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement
(Unknown Source)
        at 
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.
dispatch(Unknown Source)
        at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument
(Unknown Source)
        at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)
        at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)
        at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
        at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
        at org.apache.fop.apps.Driver.render(Driver.java:498)
        at org.apache.fop.apps.CommandLineStarter.run
(CommandLineStarter.java:106)
        at org.apache.fop.apps.Fop.main(Fop.java:62)

Reply via email to