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 | e2a5cf6e3ad841a5e106450fb1da4d481f1c2ace (patch) | |
tree | fd6b5b840aedf75da4e932a2b2337a0edcf63972 /bridges | |
parent | 5302330cfd797d0ba4fd5ca4db9da05d83f62bda (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 770725f9d23f..edf0eed6d8fd 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() ); |