Bug 2331

Summary: fo:basic-link in fo:static-content throws an exception
Product: Fop - Now in Jira Reporter: Mikko Honkala <honkkis>
Component: page-master/layoutAssignee: fop-dev
Status: CLOSED DUPLICATE    
Severity: major CC: leidig
Priority: P3    
Version: all   
Target Milestone: ---   
Hardware: All   
OS: All   
Attachments: The file where the basic-link in static-content bug appears

Description Mikko Honkala 2001-06-26 07:08:48 UTC
I'm using FOP-0.19.0 from the distribution dir.

fo:basic-link in fo:static-content throws an exception. If the 'basic-link' is 
removed from the file, it works. See the whole file as an attachment.

---------------------------------- cut ------------------------
<fo:static-content flow-name="xsl-region-after">
	<fo:block font-family="sans-serif" font-size="11pt" font-weight="bold" 
start-indent="5pt" text-align="start">
	<fo:basic-link external-destination="asdljalfdsj">
	FOOTER: This does not work, because there is a link
	</fo:basic-link>
	</fo:block>
</fo:static-content>
---------------------------------- cut ------------------------

The exception:

org.apache.fop.apps.FOPException: -1 < 0
        at org.apache.fop.apps.AWTStarter.run(AWTStarter.java:134)
        at org.apache.fop.apps.Fop.main(Fop.java:19)

---------

java.lang.ArrayIndexOutOfBoundsException: -1 < 0
        at java.util.Vector.elementAt(Vector.java:427)
        at org.apache.fop.layout.BodyAreaContainer.getCurrentColumnArea(BodyArea
Container.java:342)
        at org.apache.fop.fo.flow.BasicLink.layout(BasicLink.java:120)
        at org.apache.fop.fo.flow.Block.layout(Block.java:218)
        at org.apache.fop.fo.flow.StaticContent.layout(StaticContent.java:76)
        at org.apache.fop.fo.pagination.PageSequence.layoutStaticContent(PageSeq
uence.java:377)
        at org.apache.fop.fo.pagination.PageSequence.formatStaticContent(PageSeq
uence.java:344)
        at org.apache.fop.fo.pagination.PageSequence.format(PageSequence.java:25
2)
        at org.apache.fop.fo.pagination.Root.format(Root.java:128)
        at org.apache.fop.fo.FOTreeBuilder.format(FOTreeBuilder.java:305)
        at org.apache.fop.apps.Driver.format(Driver.java:480)
        at org.apache.fop.apps.AWTStarter.run(AWTStarter.java:121)
        at org.apache.fop.apps.Fop.main(Fop.java:19)
Comment 1 Mikko Honkala 2001-06-26 07:09:58 UTC
Created attachment 258 [details]
The file where the basic-link in static-content bug appears
Comment 2 J.Pietschmann 2002-04-22 10:38:24 UTC

*** This bug has been marked as a duplicate of 964 ***
Comment 3 Glenn Adams 2012-04-01 13:53:45 UTC
batch transition to closed remaining pre-FOP1.0 resolved bugs