Author: adrianc
Date: Wed Feb 11 18:22:19 2009
New Revision: 743440
URL:
http://svn.apache.org/viewvc?rev=743440&view=revLog:
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;
}