Kaydet (Commit) a9d67869 authored tarafından Caolán McNamara's avatar Caolán McNamara

coverity#704617 Explicit null dereferenced

Change-Id: I4ccad4c6baad8e3db3c2868ea5baecaff9f5c75e
üst fa84cdbf
...@@ -169,11 +169,13 @@ using namespace ::com::sun::star; ...@@ -169,11 +169,13 @@ using namespace ::com::sun::star;
if (pCollectionItem) if (pCollectionItem)
pCollection = pCollectionItem->getCollection(); pCollection = pCollectionItem->getCollection();
OSL_ENSURE(pCollection, "OLDAPConnectionPageSetup::FillItemSet : really need a DSN type collection !"); OSL_ENSURE(pCollection, "OLDAPConnectionPageSetup::FillItemSet : really need a DSN type collection !");
if (pCollection)
OUString sUrl = pCollection->getPrefix( OUString("sdbc:address:ldap:")); {
sUrl += m_aETHostServer.GetText(); OUString sUrl = pCollection->getPrefix( OUString("sdbc:address:ldap:"));
_rSet.Put(SfxStringItem(DSID_CONNECTURL, sUrl)); sUrl += m_aETHostServer.GetText();
bChangedSomething = sal_True; _rSet.Put(SfxStringItem(DSID_CONNECTURL, sUrl));
bChangedSomething = sal_True;
}
} }
fillBool(_rSet,&m_aCBUseSSL,DSID_CONN_LDAP_USESSL,bChangedSomething); fillBool(_rSet,&m_aCBUseSSL,DSID_CONN_LDAP_USESSL,bChangedSomething);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment