jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mreut...@apache.org
Subject svn commit: r696651 - /jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/config/BeanConfig.java
Date Thu, 18 Sep 2008 13:06:41 GMT
Author: mreutegg
Date: Thu Sep 18 06:06:41 2008
New Revision: 696651

URL: http://svn.apache.org/viewvc?rev=696651&view=rev
Log:
JCR-1738: BeanConfig may incorrectly throw ConfigurationException

Modified:
    jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/config/BeanConfig.java

Modified: jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/config/BeanConfig.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/config/BeanConfig.java?rev=696651&r1=696650&r2=696651&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/config/BeanConfig.java
(original)
+++ jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/config/BeanConfig.java
Thu Sep 18 06:06:41 2008
@@ -116,7 +116,7 @@
             Iterator it = properties.keySet().iterator();
             while (it.hasNext()) {
                 String key = (String) it.next();
-                if (map.get(key) == null && properties.getProperty(key) != null)
{
+                if (!map.containsKey(key) && properties.getProperty(key) != null)
{
                     String msg = object.getClass().getName() + " does not support '" + key;
                     log.error(msg);
                     throw new ConfigurationException(msg);



Mime
View raw message