git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@196847 13f79535-47bb-0310-9956-ffa450edef68pull/30/head
@@ -101,7 +101,7 @@ public class Document implements FOTreeControl, FOTreeListener { | |||
public AreaTree areaTree; | |||
public AreaTreeModel atModel; | |||
private Bookmarks bookmarks; | |||
private Bookmarks bookmarks = null; | |||
/** | |||
* Main constructor |
@@ -139,6 +139,9 @@ public class LayoutManagerLS extends LayoutStrategy { | |||
* the extension to the area tree. | |||
*/ | |||
public void addBookmarksToAreaTree() { | |||
if (document.getBookmarks() == null) { | |||
return; | |||
} | |||
document.getDriver().getLogger().debug("adding bookmarks to area tree"); | |||
BookmarkData data = new BookmarkData(); | |||
for (int count = 0; count < document.getBookmarks().getOutlines().size(); count++) { |