[logback-dev] svn commit: r1558 - logback/trunk/logback-core/src/main/java/ch/qos/logback/core/util
noreply.ceki at qos.ch
noreply.ceki at qos.ch
Thu Jul 19 22:42:02 CEST 2007
Author: ceki
Date: Thu Jul 19 22:42:02 2007
New Revision: 1558
Modified:
logback/trunk/logback-core/src/main/java/ch/qos/logback/core/util/PropertySetter.java
Log:
correcting bug fix observed when running with Orion.
See also http://www.qos.ch/pipermail/logback-user/2007-May/000216.html
Modified: logback/trunk/logback-core/src/main/java/ch/qos/logback/core/util/PropertySetter.java
==============================================================================
--- logback/trunk/logback-core/src/main/java/ch/qos/logback/core/util/PropertySetter.java (original)
+++ logback/trunk/logback-core/src/main/java/ch/qos/logback/core/util/PropertySetter.java Thu Jul 19 22:42:02 2007
@@ -231,7 +231,7 @@
Package p = clazz.getPackage();
if (clazz.isPrimitive()) {
return X_AS_PROPERTY;
- } else if ("java.lang".equals(p.getName())) {
+ } else if (p != null && "java.lang".equals(p.getName())) {
return X_AS_PROPERTY;
} else if (Duration.class.isAssignableFrom(clazz)) {
return X_AS_PROPERTY;
More information about the logback-dev
mailing list