diff options
author | Lionel Elie Mamane <lionel@mamane.lu> | 2012-02-09 22:20:12 +0100 |
---|---|---|
committer | Michael Meeks <michael.meeks@suse.com> | 2012-05-09 11:06:16 +0100 |
commit | 4a2a500391734f02f9e27c06b5971e670411bdff (patch) | |
tree | 241cf75e63a66a831c84ef59909b71bd0f18018e /dbaccess | |
parent | 34d7dc5145013900ac0f7f31f92beb01c858461a (diff) |
fdo#45580 crash on "connect to existing database" wizard
Signed-off-by: Michael Meeks <michael.meeks@suse.com>
Diffstat (limited to 'dbaccess')
-rw-r--r-- | dbaccess/source/core/misc/dsntypes.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/dbaccess/source/core/misc/dsntypes.cxx b/dbaccess/source/core/misc/dsntypes.cxx index ec1041bdabf2..324e2e57799d 100644 --- a/dbaccess/source/core/misc/dsntypes.cxx +++ b/dbaccess/source/core/misc/dsntypes.cxx @@ -172,7 +172,7 @@ bool ODsnTypeCollection::isConnectionUrlRequired(const ::rtl::OUString& _sURL) c sOldPattern = *aIter; } } - return sRet.GetChar(sRet.Len()-1) == '*'; + return sRet.Len() > 0 && sRet.GetChar(sRet.Len()-1) == '*'; } // ----------------------------------------------------------------------------- String ODsnTypeCollection::getMediaType(const ::rtl::OUString& _sURL) const |