summaryrefslogtreecommitdiff
path: root/scripting/source/provider/BrowseNodeFactoryImpl.cxx
diff options
context:
space:
mode:
authorVladimir Glazounov <vg@openoffice.org>2008-01-28 12:58:06 +0000
committerVladimir Glazounov <vg@openoffice.org>2008-01-28 12:58:06 +0000
commit1142acabd6f323109cdc764093138a788bb55d71 (patch)
treefabee38d0850dc3468e2e71e00de481e61da2ba9 /scripting/source/provider/BrowseNodeFactoryImpl.cxx
parentfb6d12c44286de9fd25a9f4b0dd3d687f8d753a6 (diff)
INTEGRATION: CWS ab42 (1.11.56); FILE MERGED
2008/01/07 12:06:34 ab 1.11.56.1: #i79156# getChildNodes(): Check xBrowseNode
Diffstat (limited to 'scripting/source/provider/BrowseNodeFactoryImpl.cxx')
-rw-r--r--scripting/source/provider/BrowseNodeFactoryImpl.cxx9
1 files changed, 6 insertions, 3 deletions
diff --git a/scripting/source/provider/BrowseNodeFactoryImpl.cxx b/scripting/source/provider/BrowseNodeFactoryImpl.cxx
index 34dbf5de2f4f..6f28d479125c 100644
--- a/scripting/source/provider/BrowseNodeFactoryImpl.cxx
+++ b/scripting/source/provider/BrowseNodeFactoryImpl.cxx
@@ -4,9 +4,9 @@
*
* $RCSfile: BrowseNodeFactoryImpl.cxx,v $
*
- * $Revision: 1.11 $
+ * $Revision: 1.12 $
*
- * last change: $Author: obo $ $Date: 2006-09-16 12:27:46 $
+ * last change: $Author: vg $ $Date: 2008-01-28 13:58:06 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
@@ -462,7 +462,10 @@ public:
m_xWrappedBrowseNode->getChildNodes();
for ( sal_Int32 i=0; i<nodes.getLength(); i++ )
{
- m_vNodes.push_back( new DefaultBrowseNode( m_xCtx, nodes[ i ] ) );
+ Reference< browse::XBrowseNode > xBrowseNode = nodes[ i ];
+ OSL_ENSURE( xBrowseNode.is(), "DefaultBrowseNode::getChildNodes(): Invalid BrowseNode" );
+ if( xBrowseNode.is() )
+ m_vNodes.push_back( new DefaultBrowseNode( m_xCtx, xBrowseNode ) );
}
::std::sort( m_vNodes.begin(), m_vNodes.end(), alphaSortForBNodes() );