*/
public abstract class AbstractLayoutManager implements LayoutManager, Constants {
protected LayoutManager parentLM = null;
- protected List childLMs = new ArrayList(10);
+ protected List childLMs = null;
protected ListIterator fobjIter = null;
protected Map markers = null;
* @see org.apache.fop.layoutmgr.LayoutManager#getChildLMs
*/
public List getChildLMs() {
+ if (childLMs == null) {
+ childLMs = new java.util.ArrayList(10);
+ }
return childLMs;
}
}
lm.setParent(this);
lm.initialize();
+ if (childLMs == null) {
+ childLMs = new java.util.ArrayList(10);
+ }
childLMs.add(lm);
log.trace(this.getClass().getName()
+ ": Adding child LM " + lm.getClass().getName());