From: Keiron Liddle Date: Wed, 9 Aug 2000 03:36:12 +0000 (+0000) Subject: fixed an npe X-Git-Tag: pre-columns~265 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=e3be00b924d52acb6ab0722ff11fb2c22e2382df;p=xmlgraphics-fop.git fixed an npe git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@193612 13f79535-47bb-0310-9956-ffa450edef68 --- 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) {