coverity#1209811 Dereference before null check
Change-Id: I7e3778e5203438bc5db942c813a03896d7df895b
This commit is contained in:
parent
6300794a2c
commit
13c01aac25
@ -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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user