Kaydet (Commit) 13c01aac authored tarafından Caolán McNamara's avatar Caolán McNamara

coverity#1209811 Dereference before null check

Change-Id: I7e3778e5203438bc5db942c813a03896d7df895b
üst 6300794a
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment