From e40a7f2e59f87467f552094564cbbe34ff936f4b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Caol=C3=A1n=20McNamara?= Date: Mon, 24 Feb 2014 09:44:17 +0000 Subject: [PATCH] coverity#735808 Dereference after null check Change-Id: Idd8ff57f5c970d15e199831bb1b1251ced32eeec --- sc/source/ui/dbgui/tpsort.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sc/source/ui/dbgui/tpsort.cxx b/sc/source/ui/dbgui/tpsort.cxx index 61b54eb870b5..4a8544635b32 100644 --- a/sc/source/ui/dbgui/tpsort.cxx +++ b/sc/source/ui/dbgui/tpsort.cxx @@ -273,7 +273,7 @@ sal_Bool ScTabPageSortFields::FillItemSet( SfxItemSet& rArgSet ) // If the "OK" was selected on the Options page while the sort // direction was changed, then the first field (i.e. nFieldArr[0]) // of the respective direction is chosen as the sorting criterion: - if ( bSortByRows != pDlg->GetByRows() ) + if ( pDlg && bSortByRows != pDlg->GetByRows() ) { for ( sal_uInt16 i=0; i