coverity#1209811 Dereference before null check

Change-Id: I7e3778e5203438bc5db942c813a03896d7df895b
This commit is contained in:
Caolán McNamara 2014-05-09 09:12:23 +01:00
parent 6300794a2c
commit 13c01aac25

View File

@ -1136,7 +1136,7 @@ OUString EditorWindow::GetActualSubName( sal_uLong nLine )
for( sal_uInt16 i=0; i < pMethods->Count(); i++ ) for( sal_uInt16 i=0; i < pMethods->Count(); i++ )
{ {
SbxVariable* p = PTR_CAST( SbMethod, pMethods->Get( 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 ) if( pMeth )
{ {
sal_uInt16 l1,l2; sal_uInt16 l1,l2;