From 13c01aac250da64241d780cb6fb8ed173c517f06 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Fri, 9 May 2014 09:12:23 +0100 Subject: coverity#1209811 Dereference before null check Change-Id: I7e3778e5203438bc5db942c813a03896d7df895b --- basctl/source/basicide/baside2b.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'basctl') diff --git a/basctl/source/basicide/baside2b.cxx b/basctl/source/basicide/baside2b.cxx index 20b46d0f0981..93e0f048339b 100644 --- a/basctl/source/basicide/baside2b.cxx +++ b/basctl/source/basicide/baside2b.cxx @@ -1136,7 +1136,7 @@ OUString EditorWindow::GetActualSubName( sal_uLong nLine ) for( sal_uInt16 i=0; i < pMethods->Count(); i++ ) { SbxVariable* p = PTR_CAST( SbMethod, pMethods->Get( i ) ); - SbMethod* pMeth = p ? PTR_CAST( SbMethod, p ) : NULL; + SbMethod* pMeth = PTR_CAST( SbMethod, p ); if( pMeth ) { sal_uInt16 l1,l2; -- cgit