Author: adrianc
Date: Tue Jun 30 17:21:15 2009
New Revision: 789835
URL:
http://svn.apache.org/viewvc?rev=789835&view=revLog:
Oops, forgot something.
Modified:
ofbiz/trunk/framework/base/src/org/ofbiz/base/util/UtilXml.java
Modified: ofbiz/trunk/framework/base/src/org/ofbiz/base/util/UtilXml.java
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/framework/base/src/org/ofbiz/base/util/UtilXml.java?rev=789835&r1=789834&r2=789835&view=diff==============================================================================
--- ofbiz/trunk/framework/base/src/org/ofbiz/base/util/UtilXml.java (original)
+++ ofbiz/trunk/framework/base/src/org/ofbiz/base/util/UtilXml.java Tue Jun 30 17:21:15 2009
@@ -257,9 +257,10 @@
throw e;
} catch (IOException e) {
throw e;
- }
- if (fos != null) {
- fos.close();
+ } finally {
+ if (fos != null) {
+ fos.close();
+ }
}
}