diff options
author | Kai Sommerfeld <kso@openoffice.org> | 2000-10-30 09:03:00 +0000 |
---|---|---|
committer | Kai Sommerfeld <kso@openoffice.org> | 2000-10-30 09:03:00 +0000 |
commit | 8af0b35e462b941c55e22640b3b199e77d37d3e2 (patch) | |
tree | aff243ba298f7518c7a9e09eb8d5bf4f63aa8a37 /ucbhelper | |
parent | ea81816ba11a3c1a377a98e98f1a5a63324aa99b (diff) |
Fixed: GPF in Content::getPropertyValues(...).
Diffstat (limited to 'ucbhelper')
-rw-r--r-- | ucbhelper/source/client/content.cxx | 23 |
1 files changed, 15 insertions, 8 deletions
diff --git a/ucbhelper/source/client/content.cxx b/ucbhelper/source/client/content.cxx index b1e34edde0c6..4ac6f1678f4c 100644 --- a/ucbhelper/source/client/content.cxx +++ b/ucbhelper/source/client/content.cxx @@ -2,9 +2,9 @@ * * $RCSfile: content.cxx,v $ * - * $Revision: 1.2 $ + * $Revision: 1.3 $ * - * last change: $Author: kso $ $Date: 2000-10-10 14:18:47 $ + * last change: $Author: kso $ $Date: 2000-10-30 10:03:00 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -424,10 +424,14 @@ Sequence< Any > Content::getPropertyValues( sal_Int32 nCount = rPropertyNames.getLength(); Sequence< Any > aValues( nCount ); - Any* pValues = aValues.getArray(); - for ( sal_Int32 n = 0; n < nCount; ++n ) - pValues[ n ] = xRow->getObject( n + 1, Reference< XNameAccess >() ); + if ( xRow.is() ) + { + Any* pValues = aValues.getArray(); + + for ( sal_Int32 n = 0; n < nCount; ++n ) + pValues[ n ] = xRow->getObject( n + 1, Reference< XNameAccess >() ); + } return aValues; } @@ -441,11 +445,14 @@ Sequence< Any > Content::getPropertyValues( sal_Int32 nCount = nPropertyHandles.getLength(); Sequence< Any > aValues( nCount ); - Any* pValues = aValues.getArray(); - for ( sal_Int32 n = 0; n < nCount; ++n ) - pValues[ n ] = xRow->getObject( n + 1, Reference< XNameAccess >() ); + if ( xRow.is() ) + { + Any* pValues = aValues.getArray(); + for ( sal_Int32 n = 0; n < nCount; ++n ) + pValues[ n ] = xRow->getObject( n + 1, Reference< XNameAccess >() ); + } return aValues; } |