added quiet closing to saveobjectutil
package mage.client.util.object;
+import mage.utils.StreamUtils;
+
import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
@@ -61,10 +63,9 @@ public final class SaveObjectUtil {
oos.writeObject(object);
oos.close();
- } catch (FileNotFoundException e) {
- return;
- } catch (IOException io) {
- return;
+ } catch (Exception e) {
+ } finally {
+ StreamUtils.closeQuietly(oos);
}
}
}
