ASF Bugzilla – Attachment 23321 Details for
Bug 46791
[PATCH] NullPointerException calling cloneNode for SVG 1.2 documents
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
A patch that fixes the described bug.
clonenode.patch (text/plain), 2.14 KB, created by
Daniel Westheide
on 2009-03-02 23:54:32 UTC
(
hide
)
Description:
A patch that fixes the described bug.
Filename:
MIME Type:
Creator:
Daniel Westheide
Created:
2009-03-02 23:54:32 UTC
Size:
2.14 KB
patch
obsolete
>Index: sources/org/apache/batik/dom/svg12/BindableElement.java >=================================================================== >--- sources/org/apache/batik/dom/svg12/BindableElement.java (revision 748057) >+++ sources/org/apache/batik/dom/svg12/BindableElement.java (working copy) >@@ -21,7 +21,6 @@ > import org.apache.batik.dom.AbstractDocument; > import org.apache.batik.dom.svg.AttributeInitializer; > import org.apache.batik.dom.svg.SVGGraphicsElement; >- > import org.w3c.dom.Node; > > /** >@@ -93,13 +92,55 @@ > } > > /** >+ * Exports this node to the given document. >+ */ >+ protected Node export(Node n, AbstractDocument d) { >+ BindableElement be = (BindableElement)super.export(n, d); >+ be.namespaceURI = namespaceURI; >+ be.localName = localName; >+ return n; >+ } >+ >+ /** >+ * Deeply exports this node to the given document. >+ */ >+ protected Node deepExport(Node n, AbstractDocument d) { >+ BindableElement be = (BindableElement)super.deepExport(n, d); >+ be.namespaceURI = namespaceURI; >+ be.localName = localName; >+ return n; >+ } >+ >+ /** >+ * Copy the fields of the current node into the given node. >+ * @param n a node of the type of this. >+ */ >+ protected Node copyInto(Node n) { >+ BindableElement be = (BindableElement)super.copyInto(n); >+ be.namespaceURI = namespaceURI; >+ be.localName = localName; >+ return n; >+ } >+ >+ /** >+ * Deeply copy the fields of the current node into the given node. >+ * @param n a node of the type of this. >+ */ >+ protected Node deepCopyInto(Node n) { >+ BindableElement be = (BindableElement)super.deepCopyInto(n); >+ be.namespaceURI = namespaceURI; >+ be.localName = localName; >+ return n; >+ } >+ >+ /** > * Returns a new uninitialized instance of this object's class. > */ > protected Node newNode() { >- return new BindableElement(null, null, namespaceURI, localName); >+ return new BindableElement(); > } > >- /** >+ /** > * Sets the shadow tree for this bindable element. > */ > public void setShadowTree(XBLOMShadowTreeElement s) {
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 46791
:
23321
|
23322
|
23323
|
23327