From 10c4757319cb7d6d798d9ec6ed13e6d5136d329f Mon Sep 17 00:00:00 2001 From: Keiron Liddle Date: Sun, 16 Sep 2001 13:42:49 +0000 Subject: [PATCH] fixed possible npe git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@194464 13f79535-47bb-0310-9956-ffa450edef68 --- src/org/apache/fop/fo/flow/Inline.java | 1 + src/org/apache/fop/fo/flow/Leader.java | 1 + src/org/apache/fop/fo/flow/Wrapper.java | 1 + 3 files changed, 3 insertions(+) diff --git a/src/org/apache/fop/fo/flow/Inline.java b/src/org/apache/fop/fo/flow/Inline.java index de938b221..69987b4e7 100644 --- a/src/org/apache/fop/fo/flow/Inline.java +++ b/src/org/apache/fop/fo/flow/Inline.java @@ -96,6 +96,7 @@ public class Inline extends FObjMixed { protected void addCharacters(char data[], int start, int length) { FOText ft = new FOText(data, start, length, this); + ft.setLogger(log); ft.setUnderlined(underlined); ft.setOverlined(overlined); ft.setLineThrough(lineThrough); diff --git a/src/org/apache/fop/fo/flow/Leader.java b/src/org/apache/fop/fo/flow/Leader.java index 79fc55136..b2a29007f 100644 --- a/src/org/apache/fop/fo/flow/Leader.java +++ b/src/org/apache/fop/fo/flow/Leader.java @@ -150,6 +150,7 @@ public class Leader extends FObjMixed { * //should only be necessary for use-content * protected void addCharacters(char data[], int start, int length) { * FOText textNode = new FOText(data,start,length, this); + * textNode.setLogger(log); * children.addElement(textNode); * } */ diff --git a/src/org/apache/fop/fo/flow/Wrapper.java b/src/org/apache/fop/fo/flow/Wrapper.java index 9e93439fe..da7eaa4f7 100644 --- a/src/org/apache/fop/fo/flow/Wrapper.java +++ b/src/org/apache/fop/fo/flow/Wrapper.java @@ -42,6 +42,7 @@ public class Wrapper extends FObjMixed { protected void addCharacters(char data[], int start, int length) { FOText ft = new FOText(data, start, length, this); + ft.setLogger(log); children.addElement(ft); } -- 2.39.5