[xep-support] meta-field with name="S" causes NullPointerException

From: Mattias Moltkesson <mattias.moltkesson@itello.se>
Date: Thu Sep 17 2009 - 12:03:16 PDT

Hi again!

I came across this rather weird bug when trying out custom meta-fields.
I don't really need a meta-field called "S" so it's not causing me any
problems, but perhaps you would like to look into it anyway.

Regards,
/MM

Example FO:

<fo:root>
    <rx:meta-info>
        <rx:meta-field name="S" value=""/>
<!--
A meta-field with name="S" causes this error in XEP 4.16 build 20090723
(all other names seems to work fine):

java.lang.NullPointerException
at com.renderx.pdflib.Linearize.writeObjectOrderedByNewID(Unknown
Source)
at com.renderx.pdflib.Linearize.writeLinearized(Unknown Source)
at com.renderx.pdflib.Linearize.linearize(Unknown Source)
at com.renderx.pdflib.PDFOutputStream.finish(Unknown Source)
at com.renderx.pdflib.PDFDocument.endDocument(Unknown Source)
at com.renderx.xep.gen.backends.H4PDF.close(Unknown Source)
at com.renderx.xep.gen.backends.H4PDF.endDocument(Unknown Source)
-->
    </rx:meta-info>

    <fo:layout-master-set>
        <fo:simple-page-master master-name="ref-0-page"
page-width="210mm" page-height="297mm"
                               margin="0.7cm 2cm 0.7cm 2cm"
reference-orientation="0">
            <fo:region-body margin-top="3cm" margin-bottom="3cm"/>
        </fo:simple-page-master>

        <fo:page-sequence-master master-name="page-seq">
            <fo:single-page-master-reference
master-reference="ref-0-page"/>
        </fo:page-sequence-master>
    </fo:layout-master-set>

    <fo:page-sequence master-reference="page-seq">
        <fo:flow flow-name="xsl-region-body">
            <fo:block>
                Hi there!
            </fo:block>
        </fo:flow>
    </fo:page-sequence>

</fo:root>

-------------------
(*) To unsubscribe, send a message with words 'unsubscribe xep-support'
in the body of the message to majordomo@renderx.com from the address
you are subscribed from.
(*) By using the Service, you expressly agree to these Terms of Service http://www.renderx.com/terms-of-service.html
Received on Thu Sep 17 12:32:23 2009

This archive was generated by hypermail 2.1.8 : Thu Sep 17 2009 - 12:32:24 PDT