river-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sijs...@apache.org
Subject svn commit: r1022416 - /incubator/river/jtsk/skunk/sijskes/SimpleJeri/src/org/apache/river/extra/helpers/ConfigHelper.java
Date Thu, 14 Oct 2010 08:37:10 GMT
Author: sijskes
Date: Thu Oct 14 08:37:09 2010
New Revision: 1022416

URL: http://svn.apache.org/viewvc?rev=1022416&view=rev
Log:
fixed logic error

Modified:
    incubator/river/jtsk/skunk/sijskes/SimpleJeri/src/org/apache/river/extra/helpers/ConfigHelper.java

Modified: incubator/river/jtsk/skunk/sijskes/SimpleJeri/src/org/apache/river/extra/helpers/ConfigHelper.java
URL: http://svn.apache.org/viewvc/incubator/river/jtsk/skunk/sijskes/SimpleJeri/src/org/apache/river/extra/helpers/ConfigHelper.java?rev=1022416&r1=1022415&r2=1022416&view=diff
==============================================================================
--- incubator/river/jtsk/skunk/sijskes/SimpleJeri/src/org/apache/river/extra/helpers/ConfigHelper.java
(original)
+++ incubator/river/jtsk/skunk/sijskes/SimpleJeri/src/org/apache/river/extra/helpers/ConfigHelper.java
Thu Oct 14 08:37:09 2010
@@ -1,8 +1,8 @@
 /*
  *  ConfigHelper.java
- * 
+ *
  *  Created on Aug 29, 2010 3:54:39 PM by sim
- * 
+ *
  */
 
 package org.apache.river.extra.helpers;
@@ -48,7 +48,7 @@ public abstract class ConfigHelper
     protected ProxyHelper getProxyHelper(String component)
     {
         //TODO: allow custom proxyhelper per component.
-        
+
         return new ProxyHelper(configuration);
     }
 
@@ -64,7 +64,9 @@ public abstract class ConfigHelper
             Class[] ifs = cls.getInterfaces();
             for( Class c : ifs ) {
                 jc = findJiniComponent(c);
-                return jc ;
+                if( jc != null ) {
+                    return jc ;
+                }
             }
             return null ;
         }
@@ -77,7 +79,9 @@ public abstract class ConfigHelper
         Class[] ifs = cls.getInterfaces();
         for( Class c : ifs ) {
             jc = findJiniComponent(c);
-            return jc ;
+            if( jc != null ) {
+                return jc ;
+            }
         }
         return null ;
     }



Mime
View raw message