You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by ad...@apache.org on 2009/02/11 19:22:19 UTC
svn commit: r743440 -
/ofbiz/trunk/framework/base/src/org/ofbiz/base/util/string/UelFunctions.java
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;
}