Kaydet (Commit) 7e8ce6c6 authored tarafından Caolán McNamara's avatar Caolán McNamara

coverity#441533 Dereference after null check

Change-Id: Iee024e2a16291aed98c10bfb6c33af6b17d44e4e
üst c4a766db
......@@ -644,7 +644,7 @@ void TabControl::ImplChangeTabPage( sal_uInt16 nId, sal_uInt16 nOldId )
sal_uInt16 nPos = GetPagePos( nId );
Rectangle aRect = ImplGetTabRect( nPos );
if ( !pOldItem || (pOldItem->mnLine != pItem->mnLine) )
if ( !pOldItem || !pItem || (pOldItem->mnLine != pItem->mnLine) )
{
aRect.Left() = 0;
aRect.Top() = 0;
......
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