[Libreoffice-commits] core.git: basctl/source
tagezi
lera.goncharuk at gmail.com
Mon Nov 20 15:37:38 UTC 2017
basctl/source/basicide/scriptdocument.cxx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 94c76b6d267ba72177e1144b408b0343d8385c37
Author: tagezi <lera.goncharuk at gmail.com>
Date: Mon Nov 20 13:08:31 2017 +0200
renameModuleOrDialog: add missing check for valid Reference
Change-Id: I2cf33a4fae4db45b854e77e31e166afa0281a054
Reviewed-on: https://gerrit.libreoffice.org/44956
Tested-by: Jenkins <ci at libreoffice.org>
Reviewed-by: Mike Kaganski <mike.kaganski at collabora.com>
diff --git a/basctl/source/basicide/scriptdocument.cxx b/basctl/source/basicide/scriptdocument.cxx
index a7b16505d1a5..00135960566a 100644
--- a/basctl/source/basicide/scriptdocument.cxx
+++ b/basctl/source/basicide/scriptdocument.cxx
@@ -641,7 +641,7 @@ namespace basctl
if ( _eType == E_SCRIPTS )
{
Reference< XVBAModuleInfo > xVBAModuleInfo( xLib, UNO_QUERY );
- if ( xVBAModuleInfo->hasModuleInfo( _rOldName ) )
+ if ( xVBAModuleInfo.is() && xVBAModuleInfo->hasModuleInfo( _rOldName ) )
{
ModuleInfo sModuleInfo = xVBAModuleInfo->getModuleInfo( _rOldName );
xVBAModuleInfo->removeModuleInfo( _rOldName );
More information about the Libreoffice-commits
mailing list