From e3be00b924d52acb6ab0722ff11fb2c22e2382df Mon Sep 17 00:00:00 2001 From: Keiron Liddle Date: Wed, 9 Aug 2000 03:36:12 +0000 Subject: [PATCH] fixed an npe git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@193612 13f79535-47bb-0310-9956-ffa450edef68 --- src/org/apache/fop/dom/svg/SVGClipPathElementImpl.java | 2 +- src/org/apache/fop/dom/svg/SVGMaskElementImpl.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/org/apache/fop/dom/svg/SVGClipPathElementImpl.java b/src/org/apache/fop/dom/svg/SVGClipPathElementImpl.java index 2642d657c..4c6e671eb 100644 --- a/src/org/apache/fop/dom/svg/SVGClipPathElementImpl.java +++ b/src/org/apache/fop/dom/svg/SVGClipPathElementImpl.java @@ -59,7 +59,7 @@ import org.w3c.dom.svg.*; * */ public class SVGClipPathElementImpl extends GraphicElement implements SVGClipPathElement { - public Vector elements; + public Vector elements = new Vector(); SVGAnimatedEnumeration units; public void addElement(GraphicImpl g) diff --git a/src/org/apache/fop/dom/svg/SVGMaskElementImpl.java b/src/org/apache/fop/dom/svg/SVGMaskElementImpl.java index 153fc7dba..b3c7043c5 100644 --- a/src/org/apache/fop/dom/svg/SVGMaskElementImpl.java +++ b/src/org/apache/fop/dom/svg/SVGMaskElementImpl.java @@ -57,7 +57,7 @@ import java.util.Vector; * */ public class SVGMaskElementImpl extends SVGElementImpl { - public Vector elements; + public Vector elements = new Vector(); public void addElement(GraphicImpl g) { -- 2.39.5