https://issues.apache.org/bugzilla/show_bug.cgi?id=50593

Matthias Reischenbacher <matthias8...@gmx.at> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|FIXED                       |

--- Comment #2 from Matthias Reischenbacher <matthias8...@gmx.at> 2011-03-23 
17:06:24 EDT ---
Andreas,

this commit causes a IndexOutOfBoundsException, when there are unresolved
bookmark references:

java.lang.IndexOutOfBoundsException: Index: 0
    at java.util.Collections$EmptyList.get(Collections.java:2970)
    at org.apache.fop.area.BookmarkData.resolveIDRef(BookmarkData.java:225)
    at org.apache.fop.area.BookmarkData.resolveIDRef(BookmarkData.java:233)
    at
org.apache.fop.area.AreaTreeHandler.addOffDocumentItem(AreaTreeHandler.java:340)
    at
org.apache.fop.area.AreaTreeHandler.endDocument(AreaTreeHandler.java:311)
    at org.apache.fop.fo.FOTreeBuilder.endDocument(FOTreeBuilder.java:164)
    at
org.apache.xalan.transformer.TransformerIdentityImpl.endDocument(TransformerIdentityImpl.java:963)
    at org.apache.xml.serializer.TreeWalker.traverse(TreeWalker.java:176)
    at
org.apache.xalan.transformer.TransformerIdentityImpl.transform(TransformerIdentityImpl.java:390)

Before your commit, a simple warning was displayed in console: "WARNUNG:
Bookmarks: Unresolved ID reference 'xyz' found."

I'm attaching a simple test case which reproduces the error.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

Reply via email to