summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKai Sommerfeld <kso@openoffice.org>2001-06-22 07:08:10 +0000
committerKai Sommerfeld <kso@openoffice.org>2001-06-22 07:08:10 +0000
commit658b79079e18c0aed4635413b36d82ab9de004c7 (patch)
tree12fcd655578b04cb3fd369e90029485bfbddb8f1
parent569888519bf64050ee6f493ac17250820afea024 (diff)
#88532# - Check for empty reference before dereferencing it (Content::createCursor(...))!!!
-rw-r--r--ucbhelper/source/client/content.cxx12
1 files changed, 8 insertions, 4 deletions
diff --git a/ucbhelper/source/client/content.cxx b/ucbhelper/source/client/content.cxx
index 705a75a8f635..97d3ee6c49c6 100644
--- a/ucbhelper/source/client/content.cxx
+++ b/ucbhelper/source/client/content.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: content.cxx,v $
*
- * $Revision: 1.15 $
+ * $Revision: 1.16 $
*
- * last change: $Author: kso $ $Date: 2001-05-10 07:46:46 $
+ * last change: $Author: kso $ $Date: 2001-06-22 08:08:10 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -868,7 +868,9 @@ Reference< XResultSet > Content::createCursor(
Reference< XDynamicResultSet > xDynSet;
Reference< XResultSet > xStaticSet;
- if ( aResult >>= xDynSet )
+
+ aResult >>= xDynSet;
+ if ( xDynSet.is() )
xStaticSet = xDynSet->getStaticResultSet();
VOS_ENSURE( xStaticSet.is(), "Content::createCursor - no cursor!" );
@@ -924,7 +926,9 @@ Reference< XResultSet > Content::createCursor(
Reference< XDynamicResultSet > xDynSet;
Reference< XResultSet > xStaticSet;
- if ( aResult >>= xDynSet )
+
+ aResult >>= xDynSet;
+ if ( xDynSet.is() )
xStaticSet = xDynSet->getStaticResultSet();
VOS_ENSURE( xStaticSet.is(), "Content::createCursor - no cursor!" );