cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jo...@apache.org
Subject svn commit: r607755 - /cocoon/trunk/blocks/cocoon-forms/cocoon-forms-impl/src/main/java/org/apache/cocoon/forms/datatype/DynamicSelectionList.java
Date Mon, 31 Dec 2007 17:16:12 GMT
Author: joerg
Date: Mon Dec 31 09:16:08 2007
New Revision: 607755

URL: http://svn.apache.org/viewvc?rev=607755&view=rev
Log:
fix NPE in Xalan's TransformerIdentityImpl.flushStartDoc(..) due to missing startDocument()
event (http://marc.info/?l=xml-cocoon-dev&m=119910888817794&w=4)

Modified:
    cocoon/trunk/blocks/cocoon-forms/cocoon-forms-impl/src/main/java/org/apache/cocoon/forms/datatype/DynamicSelectionList.java

Modified: cocoon/trunk/blocks/cocoon-forms/cocoon-forms-impl/src/main/java/org/apache/cocoon/forms/datatype/DynamicSelectionList.java
URL: http://svn.apache.org/viewvc/cocoon/trunk/blocks/cocoon-forms/cocoon-forms-impl/src/main/java/org/apache/cocoon/forms/datatype/DynamicSelectionList.java?rev=607755&r1=607754&r2=607755&view=diff
==============================================================================
--- cocoon/trunk/blocks/cocoon-forms/cocoon-forms-impl/src/main/java/org/apache/cocoon/forms/datatype/DynamicSelectionList.java
(original)
+++ cocoon/trunk/blocks/cocoon-forms/cocoon-forms-impl/src/main/java/org/apache/cocoon/forms/datatype/DynamicSelectionList.java
Mon Dec 31 09:16:08 2007
@@ -242,6 +242,7 @@
                 } else if (convertor == null && localName.equals("convertor")) {
                     // record the content of this element in a dom-tree
                     convertorConfigDOMBuilder = new DOMBuilder();
+                    convertorConfigDOMBuilder.startDocument();
                     convertorConfigDOMBuilder.startElement(namespaceURI, localName, qName,
attributes);
                     convertorConfigNestingLevel++;
                 } else {
@@ -260,6 +261,7 @@
                 convertorConfigNestingLevel--;
                 convertorConfigDOMBuilder.endElement(namespaceURI, localName, qName);
                 if (convertorConfigNestingLevel == 0) {
+                    convertorConfigDOMBuilder.endDocument();
                     Element convertorElement = convertorConfigDOMBuilder.getDocument().getDocumentElement();
                     try {
                         convertor = getDatatype().getBuilder().buildConvertor(convertorElement);



Mime
View raw message