diff options
author | Mikhail Voytenko <mav@openoffice.org> | 2010-12-03 17:15:07 +0100 |
---|---|---|
committer | Mikhail Voytenko <mav@openoffice.org> | 2010-12-03 17:15:07 +0100 |
commit | 71779a69e0b5bfcd1efbd95609cf560632c17cb8 (patch) | |
tree | edb6c5c600ae1bdaf136fb3cc748c72534f44963 /unotools/source | |
parent | e18dd74baf6de811ce41ab15377800d923bdc0c2 (diff) |
fwk162: #i115836# avoid crash
Diffstat (limited to 'unotools/source')
-rw-r--r-- | unotools/source/ucbhelper/ucblockbytes.cxx | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/unotools/source/ucbhelper/ucblockbytes.cxx b/unotools/source/ucbhelper/ucblockbytes.cxx index f21855d20aed..9f4c39b397e1 100644 --- a/unotools/source/ucbhelper/ucblockbytes.cxx +++ b/unotools/source/ucbhelper/ucblockbytes.cxx @@ -1538,7 +1538,16 @@ ErrCode UcbLockBytes::Flush() const Reference <XOutputStream > xOutputStream = getOutputStream_Impl(); if ( !xOutputStream.is() ) return ERRCODE_IO_CANTWRITE; - xOutputStream->flush(); + + try + { + xOutputStream->flush(); + } + catch( Exception ) + { + return ERRCODE_IO_CANTWRITE; + } + return ERRCODE_NONE; } |