svn commit: r789835 - /ofbiz/trunk/framework/base/src/org/ofbiz/base/util/UtilXml.java

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

svn commit: r789835 - /ofbiz/trunk/framework/base/src/org/ofbiz/base/util/UtilXml.java

adrianc
Author: adrianc
Date: Tue Jun 30 17:21:15 2009
New Revision: 789835

URL: http://svn.apache.org/viewvc?rev=789835&view=rev
Log:
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();
+            }
         }
     }