diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-08-30 18:15:59 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-08-30 18:16:49 +0100 |
commit | 2602a41f766625e03b961ed2293fd1f2fe851a05 (patch) | |
tree | 967da153c89da0a873b2d78e13069ec0bcd6ab6e /comphelper | |
parent | e8fb86134c6f6052ab6748698039760827fbcd37 (diff) |
coverity#706466 Uncaught exception
and
coverity#706463 Uncaught exception
Change-Id: I77cb09054f00d86cd3e206e44ef4942ddf148a7f
Diffstat (limited to 'comphelper')
-rw-r--r-- | comphelper/inc/pch/precompiled_comphelper.hxx | 1 | ||||
-rw-r--r-- | comphelper/source/misc/officeresourcebundle.cxx | 4 |
2 files changed, 0 insertions, 5 deletions
diff --git a/comphelper/inc/pch/precompiled_comphelper.hxx b/comphelper/inc/pch/precompiled_comphelper.hxx index 36ec107aefb0..5acedfda2c50 100644 --- a/comphelper/inc/pch/precompiled_comphelper.hxx +++ b/comphelper/inc/pch/precompiled_comphelper.hxx @@ -111,7 +111,6 @@ #include <com/sun/star/lang/IllegalArgumentException.hpp> #include <com/sun/star/lang/Locale.hpp> #include <com/sun/star/lang/NotInitializedException.hpp> -#include <com/sun/star/lang/NullPointerException.hpp> #include <com/sun/star/lang/XComponent.hpp> #include <com/sun/star/lang/XInitialization.hpp> #include <com/sun/star/lang/XLocalizable.hpp> diff --git a/comphelper/source/misc/officeresourcebundle.cxx b/comphelper/source/misc/officeresourcebundle.cxx index 3fe6b8dd20d4..5d9032a87481 100644 --- a/comphelper/source/misc/officeresourcebundle.cxx +++ b/comphelper/source/misc/officeresourcebundle.cxx @@ -21,7 +21,6 @@ #include <com/sun/star/resource/XResourceBundle.hpp> #include <com/sun/star/resource/XResourceBundleLoader.hpp> -#include <com/sun/star/lang/NullPointerException.hpp> #include <osl/mutex.hxx> #include <osl/diagnose.h> #include <rtl/ustrbuf.hxx> @@ -36,7 +35,6 @@ namespace comphelper using com::sun::star::resource::XResourceBundleLoader; using com::sun::star::resource::MissingResourceException; using ::com::sun::star::uno::XComponentContext; - using ::com::sun::star::lang::NullPointerException; using ::com::sun::star::uno::UNO_QUERY; using ::com::sun::star::uno::Exception; using ::com::sun::star::uno::Any; @@ -191,8 +189,6 @@ namespace comphelper OfficeResourceBundle::OfficeResourceBundle( const Reference< XComponentContext >& _context, const sal_Char* _bundleBaseAsciiName ) :m_pImpl( new ResourceBundle_Impl( _context, OUString::createFromAscii( _bundleBaseAsciiName ) ) ) { - if ( !_context.is() ) - throw NullPointerException(); } |