Return-Path: Delivered-To: apmail-ofbiz-commits-archive@www.apache.org Received: (qmail 86971 invoked from network); 11 Feb 2009 18:22:43 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 11 Feb 2009 18:22:43 -0000 Received: (qmail 61979 invoked by uid 500); 11 Feb 2009 18:22:43 -0000 Delivered-To: apmail-ofbiz-commits-archive@ofbiz.apache.org Received: (qmail 61761 invoked by uid 500); 11 Feb 2009 18:22:42 -0000 Mailing-List: contact commits-help@ofbiz.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@ofbiz.apache.org Delivered-To: mailing list commits@ofbiz.apache.org Received: (qmail 61752 invoked by uid 99); 11 Feb 2009 18:22:42 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 11 Feb 2009 10:22:42 -0800 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 11 Feb 2009 18:22:40 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 9831E2388AE7; Wed, 11 Feb 2009 18:22:19 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r743440 - /ofbiz/trunk/framework/base/src/org/ofbiz/base/util/string/UelFunctions.java Date: Wed, 11 Feb 2009 18:22:19 -0000 To: commits@ofbiz.apache.org From: adrianc@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20090211182219.9831E2388AE7@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org 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; }