diff options
author | Keiron Liddle <keiron@apache.org> | 2001-09-26 12:00:43 +0000 |
---|---|---|
committer | Keiron Liddle <keiron@apache.org> | 2001-09-26 12:00:43 +0000 |
commit | 692a69774d19362a7c39f7df56bd60b88aef9b4d (patch) | |
tree | 1f9ce1a69c332c3ccc98bbae614575b9eb07220b /src/org/apache/fop/render/awt | |
parent | 9416d7db57fdf8fe79cc48f082568e60e3e41381 (diff) | |
download | xmlgraphics-fop-692a69774d19362a7c39f7df56bd60b88aef9b4d.tar.gz xmlgraphics-fop-692a69774d19362a7c39f7df56bd60b88aef9b4d.zip |
catches exception when building svg
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@194486 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/org/apache/fop/render/awt')
-rw-r--r-- | src/org/apache/fop/render/awt/AWTRenderer.java | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/org/apache/fop/render/awt/AWTRenderer.java b/src/org/apache/fop/render/awt/AWTRenderer.java index b623a9b64..98118ed36 100644 --- a/src/org/apache/fop/render/awt/AWTRenderer.java +++ b/src/org/apache/fop/render/awt/AWTRenderer.java @@ -699,7 +699,13 @@ public class AWTRenderer extends AbstractRenderer implements Printable, Pageable GVTBuilder builder = new GVTBuilder(); BridgeContext ctx = new BridgeContext(userAgent); GraphicsNode root; - root = builder.build(ctx, doc); + try { + root = builder.build(ctx, doc); + } catch (Exception e) { + log.error("svg graphic could not be built: " + + e.getMessage(), e); + return; + } float w = (float)ctx.getDocumentSize().getWidth() * 1000f; float h = (float)ctx.getDocumentSize().getHeight() * 1000f; |