[Libreoffice-commits] .: dbaccess/source

Michael Meeks michael at kemper.freedesktop.org
Tue May 8 13:50:47 PDT 2012


 dbaccess/source/core/misc/dsntypes.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 3c648396567a2832c757d8d37432803a3f8e1818
Author: Lionel Elie Mamane <lionel at mamane.lu>
Date:   Thu Feb 9 22:20:12 2012 +0100

    fdo#45580 crash on "connect to existing database" wizard

diff --git a/dbaccess/source/core/misc/dsntypes.cxx b/dbaccess/source/core/misc/dsntypes.cxx
index 76f339d..0989ab5 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


More information about the Libreoffice-commits mailing list