You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@santuario.apache.org by sc...@apache.org on 2010/05/06 20:06:14 UTC
svn commit: r941834 - /xml/security/trunk/c/src/dsig/DSIGTransformXSL.cpp
Author: scantor
Date: Thu May 6 18:06:13 2010
New Revision: 941834
URL: http://svn.apache.org/viewvc?rev=941834&view=rev
Log:
https://issues.apache.org/bugzilla/show_bug.cgi?id=49257
Modified:
xml/security/trunk/c/src/dsig/DSIGTransformXSL.cpp
Modified: xml/security/trunk/c/src/dsig/DSIGTransformXSL.cpp
URL: http://svn.apache.org/viewvc/xml/security/trunk/c/src/dsig/DSIGTransformXSL.cpp?rev=941834&r1=941833&r2=941834&view=diff
==============================================================================
--- xml/security/trunk/c/src/dsig/DSIGTransformXSL.cpp (original)
+++ xml/security/trunk/c/src/dsig/DSIGTransformXSL.cpp Thu May 6 18:06:13 2010
@@ -163,10 +163,11 @@ DOMNode * DSIGTransformXSL::setStyleshee
DOMNode * ret = mp_stylesheetNode;
if (mp_stylesheetNode) {
- mp_txfmNode->insertBefore(stylesheet, mp_stylesheetNode);
+ if (stylesheet)
+ mp_txfmNode->insertBefore(stylesheet, mp_stylesheetNode);
mp_txfmNode->removeChild(mp_stylesheetNode);
}
- else {
+ else if (stylesheet) {
mp_txfmNode->appendChild(stylesheet);
}