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-08 21:48:34 +0100 |
commit | 3c648396567a2832c757d8d37432803a3f8e1818 (patch) | |
tree | 7aca7bd74b5d0dd67362bc2c9fcb89e2b0d44a2b /dbaccess | |
parent | a7d4d536a2e3b708af8939bdb037b1de8c9b2d1b (diff) |
fdo#45580 crash on "connect to existing database" wizard
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 76f339dcc6e6..0989ab5fc2e7 100644 --- a/dbaccess/source/core/misc/dsntypes.cxx +++ b/dbaccess/source/core/misc/dsntypes.cxx @@ -173,7 +173,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 |