diff options
author | Norbert Thiebaud <nthiebaud@gmail.com> | 2014-09-04 17:51:07 +0200 |
---|---|---|
committer | Norbert Thiebaud <nthiebaud@gmail.com> | 2014-09-05 12:44:40 +0200 |
commit | dcbd4c636b26a3a521895e423546597e9decf45f (patch) | |
tree | c555bc29815f459a6b4c61ff647100c28266ddef /dbaccess | |
parent | 6a3ae6efacecd2aabe5ff0266b1f8b29a45d8ba2 (diff) |
yet another overrun access of an empty OUString
no impact in release build but triiger assert in debug
Change-Id: I037cf127ff55c03dbc5e151d1373cfb4f6219848
Diffstat (limited to 'dbaccess')
-rw-r--r-- | dbaccess/source/ui/querydesign/SelectionBrowseBox.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/dbaccess/source/ui/querydesign/SelectionBrowseBox.cxx b/dbaccess/source/ui/querydesign/SelectionBrowseBox.cxx index 195af536eabd..43fc42067265 100644 --- a/dbaccess/source/ui/querydesign/SelectionBrowseBox.cxx +++ b/dbaccess/source/ui/querydesign/SelectionBrowseBox.cxx @@ -2121,7 +2121,7 @@ OUString OSelectionBrowseBox::GetCellText(long nRow, sal_uInt16 nColId) const case BROW_FIELD_ROW: { OUString aField = pEntry->GetField(); - if (aField[0] == '*') // * durch alias.* ersetzen + if (!aField.isEmpty() && aField[0] == '*') // * durch alias.* ersetzen { aField = pEntry->GetAlias(); if(!aField.isEmpty()) |