Kaydet (Commit) d1ccb1ee authored tarafından Norbert Thiebaud's avatar Norbert Thiebaud

coverity#735665 Dereference after null check

Change-Id: I9d217789116602838dabbf93e81ab8d0467c5c7b
Reviewed-on: https://gerrit.libreoffice.org/2217Reviewed-by: 's avatarNorbert Thiebaud <nthiebaud@gmail.com>
Tested-by: 's avatarNorbert Thiebaud <nthiebaud@gmail.com>
üst f0300c1a
......@@ -213,10 +213,12 @@ ModulWindow* Shell::CreateBasWin( const ScriptDocument& rDocument, const OUStrin
}
pTabBar->InsertPage( (sal_uInt16)nKey, aModName );
pTabBar->Sort();
pWin->GrabScrollBars( &aHScrollBar, &aVScrollBar );
if ( !pCurWin )
SetCurWindow( pWin, false, false );
if(pWin)
{
pWin->GrabScrollBars( &aHScrollBar, &aVScrollBar );
if ( !pCurWin )
SetCurWindow( pWin, false, false );
}
bCreatingWindow = false;
return pWin;
}
......
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