diff options
Diffstat (limited to 'comphelper/source/misc/diagnose_ex.cxx')
-rw-r--r-- | comphelper/source/misc/diagnose_ex.cxx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/comphelper/source/misc/diagnose_ex.cxx b/comphelper/source/misc/diagnose_ex.cxx index e805c5b4c2a5..ec00bd0e1436 100644 --- a/comphelper/source/misc/diagnose_ex.cxx +++ b/comphelper/source/misc/diagnose_ex.cxx @@ -62,6 +62,9 @@ static void exceptionToStringImpl(OStringBuffer& sMessage, const css::uno::Any & auto toOString = [](OUString const & s) { return OUStringToOString( s, osl_getThreadTextEncoding() ); }; + // when called recursively, we might not have any exception to print + if (!caught.hasValue()) + return; sMessage.append(toOString(caught.getValueTypeName())); css::uno::Exception exception; caught >>= exception; |