commit | dad86349bea3aec1d48793adc61b446f82311d15 | [log] [tgz] |
---|---|---|
author | John Eckerdal <john.eckerdal@sonyericsson.com> | Wed Jun 02 10:59:46 2010 +0200 |
committer | Johan Redestig <johan.redestig@sonyericsson.com> | Wed Jun 02 10:59:46 2010 +0200 |
tree | baab931f7e80fc366485c5b79493f0f4706dac9c | |
parent | d6c1919779acb042392615637b9007e0c4b89023 [diff] |
Add better error handling for savePicture and restorePicture If an Exception occurs when storing the file treat this as an error and always fail to try to prevent corrupted pictures to be stored to the file system. Close files if they were opened, the caller might want to perform other file operations on the file and if it is still open these may fail. Change-Id: Ic68596b5c745bbe413096c22684c388e853a7643