re PR xml/29362 (NullPointerException in gnu.xml.transform.TransformerImpl.strip(libgcj.so.7rh))

PR classpath/29362:
	* gnu/xml/transform/TransformerImpl.java (transform): Only strip if
	there is a stylesheet.

From-SVN: r117612
This commit is contained in:
Tom Tromey 2006-10-10 19:31:56 +00:00 committed by Tom Tromey
parent ab6b9a13d0
commit 4e34ede292
2 changed files with 8 additions and 1 deletions

View File

@ -1,3 +1,9 @@
2006-10-10 Tom Tromey <tromey@redhat.com>
PR classpath/29362:
* gnu/xml/transform/TransformerImpl.java (transform): Only strip if
there is a stylesheet.
2006-10-05 Gary Benson <gbenson@redhat.com> 2006-10-05 Gary Benson <gbenson@redhat.com>
* java/net/SocketPermission.java * java/net/SocketPermission.java

View File

@ -327,7 +327,8 @@ class TransformerImpl
domDoc.setCheckWellformedness(false); domDoc.setCheckWellformedness(false);
} }
parent.normalize(); parent.normalize();
strip(stylesheet, parent); if (stylesheet != null)
strip(stylesheet, parent);
Document resultDoc = (parent instanceof Document) ? Document resultDoc = (parent instanceof Document) ?
(Document) parent : (Document) parent :
parent.getOwnerDocument(); parent.getOwnerDocument();