From 394ad7fa73ec70e576a4b0bdfaa7cc2986e1bf46 Mon Sep 17 00:00:00 2001 From: ViKrAm-Bais Date: Mon, 8 Mar 2021 09:51:02 +0530 Subject: tdf#42982: improve UNO API error reporting Change-Id: I20080d81e0b08e6e0dcd421bd75cb7d796e97ea7 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/112149 Tested-by: Jenkins Reviewed-by: Michael Stahl --- basic/source/uno/namecont.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'basic/source') diff --git a/basic/source/uno/namecont.cxx b/basic/source/uno/namecont.cxx index 28bdab04a298..d42b701a5405 100644 --- a/basic/source/uno/namecont.cxx +++ b/basic/source/uno/namecont.cxx @@ -2327,7 +2327,7 @@ void SAL_CALL SfxLibraryContainer::loadLibrary( const OUString& Name ) " storage!")); if ( !xLibrariesStor.is() ) { - throw uno::RuntimeException("null returned from openStorageElement"); + throw uno::RuntimeException("null returned from openStorageElement",static_cast< cppu::OWeakObject * >(this)); } xLibraryStor = xLibrariesStor->openStorageElement( Name, embed::ElementModes::READ ); @@ -2337,7 +2337,7 @@ void SAL_CALL SfxLibraryContainer::loadLibrary( const OUString& Name ) " storage!")); if ( !xLibrariesStor.is() ) { - throw uno::RuntimeException("null returned from openStorageElement"); + throw uno::RuntimeException("null returned from openStorageElement",static_cast< cppu::OWeakObject * >(this)); } #if OSL_DEBUG_LEVEL > 0 } -- cgit