diff options
Diffstat (limited to 'src/org/apache/fop/mif/MIFElement.java')
-rw-r--r-- | src/org/apache/fop/mif/MIFElement.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/org/apache/fop/mif/MIFElement.java b/src/org/apache/fop/mif/MIFElement.java index 45fe27e99..bff204717 100644 --- a/src/org/apache/fop/mif/MIFElement.java +++ b/src/org/apache/fop/mif/MIFElement.java @@ -18,7 +18,7 @@ import java.util.*; */ public class MIFElement { protected String name; - protected String valueStr; + protected String valueStr = null; protected ArrayList valueElements = null; protected boolean started = false; @@ -51,6 +51,8 @@ public class MIFElement { */ public boolean output(OutputStream os, int indent) throws IOException { if(finished) return true; + if(valueElements == null && valueStr == null) return false; + String indentStr = ""; for(int c = 0; c < indent; c++) indentStr += " "; if(!started) { |