svn commit: r1418726 - /cocoon/cocoon3/trunk/cocoon-profiling/src/main/java/org/apache/cocoon/profiling/component/ProfilingGenerator.java
| Newsgroups | gmane.text.xml.cocoon.cvs |
|---|---|
| Message-ID | <[email protected]> |
Author: robbypelssers
Date: Sat Dec 8 18:17:34 2012
New Revision: 1418726
URL: http://svn.apache.org/viewvc?rev=1418726&view=rev
Log:
[COCOON3-115] bugfix
when an element has no attributes, one should pass an empty Attributes object instead of a null value to contenthandler.startElement(name, attributes)
Modified:
cocoon/cocoon3/trunk/cocoon-profiling/src/main/java/org/apache/cocoon/profiling/component/ProfilingGenerator.java
Modified: cocoon/cocoon3/trunk/cocoon-profiling/src/main/java/org/apache/cocoon/profiling/component/ProfilingGenerator.java
URL: http://svn.apache.org/viewvc/cocoon/cocoon3/trunk/cocoon-profiling/src/main/java/org/apache/cocoon/profiling/component/ProfilingGenerator.java?rev=1418726&r1=1418725&r2=1418726&view=diff
==============================================================================
--- cocoon/cocoon3/trunk/cocoon-profiling/src/main/java/org/apache/cocoon/profiling/component/ProfilingGenerator.java (original)
+++ cocoon/cocoon3/trunk/cocoon-profiling/src/main/java/org/apache/cocoon/profiling/component/ProfilingGenerator.java Sat Dec 8 18:17:34 2012
@@ -298,7 +298,7 @@ public class ProfilingGenerator extends
}
private void startElement(String name) throws SAXException {
- this.startElement(name, (Attributes) null);
+ this.startElement(name, new AttributesImpl());
}
private void startElement(String name, Attributes attributes) throws SAXException {