svn commit: r662855 - /activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/util/ObjectHelper.java

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

svn commit: r662855 - /activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/util/ObjectHelper.java

davsclaus-2
Author: davsclaus
Date: Tue Jun  3 11:28:48 2008
New Revision: 662855

URL: http://svn.apache.org/viewvc?rev=662855&view=rev
Log:
CAMEL-572: Applied patch with thanks to Freeman Fang

Modified:
    activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/util/ObjectHelper.java

Modified: activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/util/ObjectHelper.java
URL: http://svn.apache.org/viewvc/activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/util/ObjectHelper.java?rev=662855&r1=662854&r2=662855&view=diff
==============================================================================
--- activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/util/ObjectHelper.java (original)
+++ activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/util/ObjectHelper.java Tue Jun  3 11:28:48 2008
@@ -380,7 +380,7 @@
         if (contextClassLoader != null) {
             in = contextClassLoader.getResourceAsStream(name);
         }
-        if (in != null) {
+        if (in == null) {
             in = ObjectHelper.class.getClassLoader().getResourceAsStream(name);
         }