]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
Avoid NPE when options aren't set on the XMLRenderer (Bug 14768)
authorJeremias Maerki <jeremias@apache.org>
Thu, 28 Nov 2002 16:06:39 +0000 (16:06 +0000)
committerJeremias Maerki <jeremias@apache.org>
Thu, 28 Nov 2002 16:06:39 +0000 (16:06 +0000)
Submitted by: Matthias Brunner <mb@blumenstrasse.vol.at>

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/fop-0_20_2-maintain@195646 13f79535-47bb-0310-9956-ffa450edef68

src/org/apache/fop/render/xml/XMLRenderer.java

index b4d98daf3f2d0a7b10649691e50eda98416127fe..f7e8b3f44055f468d7f553db131af2fe957ae816 100644 (file)
@@ -495,7 +495,15 @@ public class XMLRenderer implements Renderer {
     }
 
     private boolean isCoarseXml() {
-        return ((Boolean)options.get("fineDetail")).booleanValue();
+        if (options == null) {
+            return false;
+        }
+        Boolean b = (Boolean)options.get("fineDetail");
+        if (b != null) {
+            return b.booleanValue();
+        } else {
+            return false;
+        }
     }
 
     /**