svn commit: r743440 - /ofbiz/trunk/framework/base/src/org/ofbiz/base/util/string/UelFunctions.java

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

svn commit: r743440 - /ofbiz/trunk/framework/base/src/org/ofbiz/base/util/string/UelFunctions.java

adrianc
Author: adrianc
Date: Wed Feb 11 18:22:19 2009
New Revision: 743440

URL: http://svn.apache.org/viewvc?rev=743440&view=rev
Log:
Oops, I meant to clean up this code before committing.

Modified:
    ofbiz/trunk/framework/base/src/org/ofbiz/base/util/string/UelFunctions.java

Modified: ofbiz/trunk/framework/base/src/org/ofbiz/base/util/string/UelFunctions.java
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/base/src/org/ofbiz/base/util/string/UelFunctions.java?rev=743440&r1=743439&r2=743440&view=diff
==============================================================================
--- ofbiz/trunk/framework/base/src/org/ofbiz/base/util/string/UelFunctions.java (original)
+++ ofbiz/trunk/framework/base/src/org/ofbiz/base/util/string/UelFunctions.java Wed Feb 11 18:22:19 2009
@@ -378,12 +378,11 @@
         boolean result = false;
         try {
             URL url = FlexibleLocation.resolveLocation(str);
-            if (url == null) {
-                return false;
+            if (url != null) {
+                InputStream is = url.openStream();
+                result = true;
+                is.close();
             }
-            InputStream is = url.openStream();
-            result = true;
-            is.close();
         } catch (Exception e) {}
         return result;
     }