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=26778>.
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=26778

[PATCH] Support for percentages and table-units





------- Additional Comments From [EMAIL PROTECTED]  2004-02-14 22:05 -------
Finn,

I have only just started to understand this, but I found a problem when running
the fo file which I will attach next.

Exception in thread "main" java.lang.NullPointerException
        at org.apache.fop.fo.expr.NumericOp.addition(NumericOp.java:73)
        at
org.apache.fop.fo.properties.IndentPropertyMaker.compute(IndentPropertyMaker.java:117)
        at org.apache.fop.fo.properties.PropertyMaker.compute(PropertyMaker.java:588)
        at 
org.apache.fop.fo.properties.PropertyMaker.findProperty(PropertyMaker.java:274)
        at 
org.apache.fop.fo.properties.PropertyMaker.findProperty(PropertyMaker.java:283)
        at org.apache.fop.fo.properties.PropertyMaker.get(PropertyMaker.java:305)
        at org.apache.fop.fo.PropertyList.get(PropertyList.java:282)
        at org.apache.fop.fo.PropertyList.get(PropertyList.java:268)
        at org.apache.fop.fo.PropertyManager.getMarginProps(PropertyManager.java:332)
        at 
org.apache.fop.fo.pagination.RegionBody.getViewportRectangle(RegionBody.java:90)
        at
org.apache.fop.layoutmgr.PageLayoutManager.makeRegionViewport(PageLayoutManager.java:832)
        at
org.apache.fop.layoutmgr.PageLayoutManager.createPageAreas(PageLayoutManager.java:805)
        at
org.apache.fop.layoutmgr.PageLayoutManager.createPage(PageLayoutManager.java:744)
        at
org.apache.fop.layoutmgr.PageLayoutManager.makeNewPage(PageLayoutManager.java:464)
        at 
org.apache.fop.layoutmgr.PageLayoutManager.doLayout(PageLayoutManager.java:216)
        at org.apache.fop.layoutmgr.PageLayoutManager.run(PageLayoutManager.java:204)
        at org.apache.fop.layoutmgr.LayoutManagerLS.format(LayoutManagerLS.java:113)
        at org.apache.fop.apps.Document.foPageSequenceComplete(Document.java:348)
        at
org.apache.fop.fo.FOTreeHandler.notifyPageSequenceComplete(FOTreeHandler.java:533)
        at org.apache.fop.fo.FOTreeHandler.endPageSequence(FOTreeHandler.java:219)
        at org.apache.fop.fo.pagination.PageSequence.end(PageSequence.java:353)
        at org.apache.fop.fo.FOTreeBuilder.endElement(FOTreeBuilder.java:235)
        at
org.apache.fop.tools.ProxyContentHandler.endElement(ProxyContentHandler.java:126)
        at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source)

elementName: "fo:region-body"
parent elementName: "fo:simple-page-master"
propId = 212: PR_START_INDENT
corresponding: 136, PR_MARGIN_LEFT (in lr_tb)

Retrieving the corresponding property of the parent FO

The property is a RelativeNumericProperty:

main[1] print prop
 prop = "(4000mpt +20.0%)"

main[1] dump prop
 prop = {
    operation: 1
    op1: instance of org.apache.fop.fo.properties.FixedLength(id=685)
    op2: instance of org.apache.fop.fo.properties.PercentLength(id=684)
    dimension: 1
    org.apache.fop.fo.properties.Property.specVal: null
}

PropertyList:
main[1] print this
 this = "{master-name=simpleA4, margin=[(4000mpt +20.0%)]}"

In IndentPropertyMaker.compute
   RelativeNumericProperty.getNumeric() returns null

In NumericOp.addition:
main[1] locals
Method arguments:
op1 = instance of org.apache.fop.fo.properties.FixedLength(id=773)
op2 = null

Reply via email to