diff options
author | sb <sb@openoffice.org> | 2010-06-25 13:15:39 +0200 |
---|---|---|
committer | sb <sb@openoffice.org> | 2010-06-25 13:15:39 +0200 |
commit | f33ed5240bcd3785ca78c7deb4de8b8ea5c28f66 (patch) | |
tree | c03742cab33987a4e950b6c9260b83e91fdb656e /bridges | |
parent | 28f6da5c12e479e4c020c4deb2fb51f1beee4141 (diff) |
sb126: #i112681# make bridges match remotebridges (patch by cmc)
Diffstat (limited to 'bridges')
-rw-r--r-- | bridges/source/remote/context/context.cxx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/bridges/source/remote/context/context.cxx b/bridges/source/remote/context/context.cxx index 4c9e1b066..532e7f07a 100644 --- a/bridges/source/remote/context/context.cxx +++ b/bridges/source/remote/context/context.cxx @@ -267,6 +267,10 @@ rtl_uString ** ContextAdmin::getConnectionList( ::osl::MutexGuard guard( m_mutex ); *pnStringCount = m_mapContext.size(); + + if (*pnStringCount == 0) + return NULL; + rtl_uString **ppReturn = ( rtl_uString ** ) memAlloc( sizeof( rtl_uString * ) * m_mapContext.size() ); memset( ppReturn , 0 , sizeof( rtl_uString * ) * m_mapContext.size() ); |