aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKeiron Liddle <keiron@apache.org>2002-06-10 08:51:37 +0000
committerKeiron Liddle <keiron@apache.org>2002-06-10 08:51:37 +0000
commit371e9ee3451cfa4fa56516390f4a74457f411b47 (patch)
treecaf4bfcc36feacc1b6fc079f8bc88882a82c5514 /src
parentd8510cb466c14d47630f544b210d35f6a37d3cbf (diff)
downloadxmlgraphics-fop-371e9ee3451cfa4fa56516390f4a74457f411b47.tar.gz
xmlgraphics-fop-371e9ee3451cfa4fa56516390f4a74457f411b47.zip
prevent starting until value set
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@194864 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src')
-rw-r--r--src/org/apache/fop/mif/MIFElement.java4
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) {