You are viewing a plain text version of this content. The canonical link for it is here.
Posted to batik-commits@xmlgraphics.apache.org by ca...@apache.org on 2007/09/21 06:04:45 UTC

svn commit: r577978 - in /xmlgraphics/batik/trunk/sources/org/apache/batik/dom/svg: SVGOMImageElement.java SVGOMSymbolElement.java

Author: cam
Date: Thu Sep 20 21:04:44 2007
New Revision: 577978

URL: http://svn.apache.org/viewvc?rev=577978&view=rev
Log:
Avoid NPE when cloning <symbol> and <image> Elements.
Fixes bug 42032.

Modified:
    xmlgraphics/batik/trunk/sources/org/apache/batik/dom/svg/SVGOMImageElement.java
    xmlgraphics/batik/trunk/sources/org/apache/batik/dom/svg/SVGOMSymbolElement.java

Modified: xmlgraphics/batik/trunk/sources/org/apache/batik/dom/svg/SVGOMImageElement.java
URL: http://svn.apache.org/viewvc/xmlgraphics/batik/trunk/sources/org/apache/batik/dom/svg/SVGOMImageElement.java?rev=577978&r1=577977&r2=577978&view=diff
==============================================================================
--- xmlgraphics/batik/trunk/sources/org/apache/batik/dom/svg/SVGOMImageElement.java (original)
+++ xmlgraphics/batik/trunk/sources/org/apache/batik/dom/svg/SVGOMImageElement.java Thu Sep 20 21:04:44 2007
@@ -100,8 +100,7 @@
     /**
      * The 'preserveAspectRatio' attribute value.
      */
-    protected SVGOMAnimatedPreserveAspectRatio preserveAspectRatio =
-        createLiveAnimatedPreserveAspectRatio();
+    protected SVGOMAnimatedPreserveAspectRatio preserveAspectRatio;
 
     /**
      * Creates a new SVGOMImageElement object.

Modified: xmlgraphics/batik/trunk/sources/org/apache/batik/dom/svg/SVGOMSymbolElement.java
URL: http://svn.apache.org/viewvc/xmlgraphics/batik/trunk/sources/org/apache/batik/dom/svg/SVGOMSymbolElement.java?rev=577978&r1=577977&r2=577978&view=diff
==============================================================================
--- xmlgraphics/batik/trunk/sources/org/apache/batik/dom/svg/SVGOMSymbolElement.java (original)
+++ xmlgraphics/batik/trunk/sources/org/apache/batik/dom/svg/SVGOMSymbolElement.java Thu Sep 20 21:04:44 2007
@@ -58,8 +58,7 @@
     /**
      * The 'preserveAspectRatio' attribute value.
      */
-    protected SVGOMAnimatedPreserveAspectRatio preserveAspectRatio =
-        createLiveAnimatedPreserveAspectRatio();
+    protected SVGOMAnimatedPreserveAspectRatio preserveAspectRatio;
 
     /**
      * The attribute initializer.