diff options
author | Ocke Janssen [oj] <Ocke.Janssen@oracle.com> | 2011-03-17 13:38:39 +0100 |
---|---|---|
committer | Ocke Janssen [oj] <Ocke.Janssen@oracle.com> | 2011-03-17 13:38:39 +0100 |
commit | f74016fe581e96afec61ecef37920ca81e8767c9 (patch) | |
tree | 33a95b6535f56bf62294b0e5894783f35325073b /connectivity/source | |
parent | c696ee29fc4254652b4df9cd5242bae8096d7e1f (diff) |
dba34d: check extensions is empty
Diffstat (limited to 'connectivity/source')
-rw-r--r-- | connectivity/source/drivers/flat/ETable.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/connectivity/source/drivers/flat/ETable.cxx b/connectivity/source/drivers/flat/ETable.cxx index b18c577030b0..4417c0fe6a7a 100644 --- a/connectivity/source/drivers/flat/ETable.cxx +++ b/connectivity/source/drivers/flat/ETable.cxx @@ -494,7 +494,8 @@ String OFlatTable::getEntry() // name and extension have to coincide if ( m_pConnection->matchesExtension( sExt ) ) { - sName = sName.replaceAt(sName.getLength()-(sExt.getLength()+1),sExt.getLength()+1,::rtl::OUString()); + if ( sExt.getLength() ) + sName = sName.replaceAt(sName.getLength()-(sExt.getLength()+1),sExt.getLength()+1,::rtl::OUString()); if ( sName == m_Name ) { Reference< XContentAccess > xContentAccess( xDir, UNO_QUERY ); |