summaryrefslogtreecommitdiff
path: root/comphelper
diff options
context:
space:
mode:
authorChristof Pintaske <cp@openoffice.org>2001-02-15 14:46:21 +0000
committerChristof Pintaske <cp@openoffice.org>2001-02-15 14:46:21 +0000
commit393baae643f66b93ea08d5e749d7f3edd384b1f5 (patch)
tree5dfb20859b7fca30b2024d148b5211dbcb6fd471 /comphelper
parent1915b01aa1c3cacdda7260f2b87f32e6ab1d2c8d (diff)
check for valid single service factory
Diffstat (limited to 'comphelper')
-rw-r--r--comphelper/source/processfactory/componentfactory.cxx7
1 files changed, 4 insertions, 3 deletions
diff --git a/comphelper/source/processfactory/componentfactory.cxx b/comphelper/source/processfactory/componentfactory.cxx
index b0006eb10427..94f0c213bc53 100644
--- a/comphelper/source/processfactory/componentfactory.cxx
+++ b/comphelper/source/processfactory/componentfactory.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: componentfactory.cxx,v $
*
- * $Revision: 1.1.1.1 $
+ * $Revision: 1.2 $
*
- * last change: $Author: fs $ $Date: 2000-09-29 11:28:15 $
+ * last change: $Author: cp $ $Date: 2001-02-15 15:46:21 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -124,7 +124,8 @@ Reference< XInterface > getComponentInstance(
Reference< XSingleServiceFactory > xSSF =
loadLibComponentFactory( rLibraryName, rImplementationName,
Reference< XMultiServiceFactory >(), Reference< XRegistryKey >() );
- xI = xSSF->createInstance();
+ if (xSSF.is())
+ xI = xSSF->createInstance();
}
return xI;
}