summaryrefslogtreecommitdiff
path: root/extensions
diff options
context:
space:
mode:
authorOliver Specht <os@openoffice.org>2000-11-27 07:11:17 +0000
committerOliver Specht <os@openoffice.org>2000-11-27 07:11:17 +0000
commitbbb576617c557202fbfc41179f1c227e69f97e56 (patch)
treed11b273e8d2013f43233dcdcb0d7318f004942d6 /extensions
parentd0ffd6cb82286a941329eb4c7122246566b97467 (diff)
#80754# registry GPF
Diffstat (limited to 'extensions')
-rw-r--r--extensions/source/bibliography/datman.cxx18
1 files changed, 11 insertions, 7 deletions
diff --git a/extensions/source/bibliography/datman.cxx b/extensions/source/bibliography/datman.cxx
index ad9fedee22f4..01eb267fb35a 100644
--- a/extensions/source/bibliography/datman.cxx
+++ b/extensions/source/bibliography/datman.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: datman.cxx,v $
*
- * $Revision: 1.7 $
+ * $Revision: 1.8 $
*
- * last change: $Author: os $ $Date: 2000-11-20 12:23:38 $
+ * last change: $Author: os $ $Date: 2000-11-27 08:11:17 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -1493,14 +1493,18 @@ Reference< awt::XControlModel > BibDataManager::loadGridModel(const rtl::OUStri
//------------------------------------------------------------------------
Reference< XPropertySet > BibDataManager::createGlobalProperties()
{
+ Reference< XPropertySet > xRet;
try
{
Reference< registry::XRegistryKey > xRoot = xRegistry->getRootKey();
- Reference< registry::XRegistryKey > xKey = xRoot->openKey(gGlobalName);
- if(!xKey.is())
- xKey = xRoot->createKey(gGlobalName);
+ if(xRoot.is())
+ {
+ Reference< registry::XRegistryKey > xKey = xRoot->openKey(gGlobalName);
+ if(!xKey.is())
+ xKey = xRoot->createKey(gGlobalName);
+ xRet = Reference< XPropertySet > (xKey, UNO_QUERY);
+ }
- return Reference< XPropertySet > (xKey, UNO_QUERY);
}
#ifdef DBG_UTIL
@@ -1512,7 +1516,7 @@ Reference< XPropertySet > BibDataManager::createGlobalProperties()
DBG_ERROR("::getViewProperties: something went wrong !");
}
- return Reference< XPropertySet > ();
+ return xRet;
}
//------------------------------------------------------------------------
void BibDataManager::setViewSize(long nSize)