ofbiz-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From adri...@apache.org
Subject svn commit: r743440 - /ofbiz/trunk/framework/base/src/org/ofbiz/base/util/string/UelFunctions.java
Date Wed, 11 Feb 2009 18:22:19 GMT
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;
     }



Mime
View raw message