Commits

Anonymous committed f10e266

dba34d: check extensions is empty

Comments (0)

Files changed (1)

connectivity/source/drivers/flat/ETable.cxx

 			// 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 );