Hi,

Please find the latest report on new defect(s) introduced to LibreOffice found 
with Coverity Scan.

1 new defect(s) introduced to LibreOffice found with Coverity Scan.
9 defect(s), reported by Coverity Scan earlier, were marked fixed in the recent 
build analyzed by Coverity Scan.

New defect(s) Reported-by: Coverity Scan
Showing 1 of 1 defect(s)


** CID 1643100:  SpotBugs: Dodgy code  (FB.DLS_DEAD_LOCAL_STORE)
/wizards/com/sun/star/wizards/db/SQLQueryComposer.java: 165 in 
com.sun.star.wizards.db.SQLQueryComposer.appendSortingCriterion(int, boolean)()


________________________________________________________________________________________________________
*** CID 1643100:  SpotBugs: Dodgy code  (FB.DLS_DEAD_LOCAL_STORE)
/wizards/com/sun/star/wizards/db/SQLQueryComposer.java: 165 in 
com.sun.star.wizards.db.SQLQueryComposer.appendSortingCriterion(int, boolean)()
159         }
160     
161         private void appendSortingCriterion(int _SortIndex, boolean 
_baddAliasFieldNames) throws SQLException
162         {
163             String sSortValue = 
CurDBMetaData.getSortFieldNames()[_SortIndex][0];
164             String currentOrder = m_queryComposer.getOrder();
>>>     CID 1643100:  SpotBugs: Dodgy code  (FB.DLS_DEAD_LOCAL_STORE)
>>>     Dead store to xColumn.
165             XPropertySet xColumn = 
CurDBMetaData.getColumnObjectByFieldName(sSortValue, _baddAliasFieldNames);
166     
167             String sSort = "ASC";
168             if(CurDBMetaData.getSortFieldNames()[_SortIndex].length > 1)
169             {
170                 sSort = CurDBMetaData.getSortFieldNames()[_SortIndex][1];


________________________________________________________________________________________________________
To view the defects in Coverity Scan visit, 
https://scan.coverity.com/projects/libreoffice?tab=overview

Reply via email to