cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From reinh...@apache.org
Subject svn commit: r807321 - /cocoon/cocoon3/trunk/cocoon-profiling/src/main/java/org/apache/cocoon/profiling/component/ProfilingGenerator.java
Date Mon, 24 Aug 2009 17:59:44 GMT
Author: reinhard
Date: Mon Aug 24 17:59:44 2009
New Revision: 807321

URL: http://svn.apache.org/viewvc?rev=807321&view=rev
Log:
COCOON3-40 apply the NPE fix

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=807321&r1=807320&r2=807321&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
Mon Aug 24 17:59:44 2009
@@ -287,7 +287,7 @@
         Class<?> clazz = data.getRepresentedClass();
         String value = data.getStringRepresentation();
 
-        this.addStringAttribute(attr, "class", clazz.getName());
+        this.addStringAttribute(attr, "class", clazz == null ? "null" : clazz.getName());
         this.startElement("argument", attr);
         this.addData(value);
         this.endElement();



Mime
View raw message