diff options
author | Tor Lillqvist <tml@collabora.com> | 2020-05-05 19:15:52 +0300 |
---|---|---|
committer | Andras Timar <andras.timar@collabora.com> | 2020-05-08 12:07:13 +0200 |
commit | b4e4a5ca8ed52a57d39b06ae7183fd4586e980eb (patch) | |
tree | 68582c6d937e67caa9f470e4df6d086869f9e801 /vcl | |
parent | 509c94f1a94d9a2faf835862c400cd78385a2549 (diff) |
On iOS, avoid catching exceptions to just immediately exit or abort anyway
It is better to let the exception be uncaught and then catch that in
the debugger. (Maybe even inspect its backtrace from a crash dump
automatically sent from an end-user device.)
Change-Id: Ice02d5cbd7f4a59eae7ce8a9fac47dec8b234a5e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/93505
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Tor Lillqvist <tml@collabora.com>
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/93601
Tested-by: Jenkins
Reviewed-by: Andras Timar <andras.timar@collabora.com>
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/93646
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/source/app/salusereventlist.cxx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/vcl/source/app/salusereventlist.cxx b/vcl/source/app/salusereventlist.cxx index cb9104d7a5c1..088bc141f5a6 100644 --- a/vcl/source/app/salusereventlist.cxx +++ b/vcl/source/app/salusereventlist.cxx @@ -103,10 +103,13 @@ bool SalUserEventList::DispatchUserEvents( bool bHandleAllCurrentEvents ) continue; } +#ifndef IOS try +#endif { ProcessEvent( aEvent ); } +#ifndef IOS catch (css::uno::Exception&) { TOOLS_WARN_EXCEPTION("vcl", "Uncaught"); @@ -122,6 +125,7 @@ bool SalUserEventList::DispatchUserEvents( bool bHandleAllCurrentEvents ) SAL_WARN("vcl", "Uncaught exception during DispatchUserEvents!"); std::abort(); } +#endif aResettableListGuard.reset(); if (!bHandleAllCurrentEvents) break; |