summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--dbaccess/source/ui/dlg/generalpage.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/dbaccess/source/ui/dlg/generalpage.cxx b/dbaccess/source/ui/dlg/generalpage.cxx
index 129583a7f8e3..e3efcaaedaf3 100644
--- a/dbaccess/source/ui/dlg/generalpage.cxx
+++ b/dbaccess/source/ui/dlg/generalpage.cxx
@@ -400,6 +400,8 @@ namespace dbaui
{
// get the type from the entry data
const sal_Int32 nSelected = _rBox.GetSelectedEntryPos();
+ if ( nSelected == LISTBOX_ENTRY_NOTFOUND)
+ return;
if (static_cast<size_t>(nSelected) >= m_aURLPrefixes.size() )
{
SAL_WARN("dbaccess.ui.generalpage", "Got out-of-range value '" << nSelected << "' from the DatasourceType selection ListBox's GetSelectedEntryPos(): no corresponding URL prefix");