diff options
author | Ivan Timofeev <timofeev.i.s@gmail.com> | 2011-11-06 13:20:56 +0400 |
---|---|---|
committer | Ivan Timofeev <timofeev.i.s@gmail.com> | 2011-11-06 15:47:55 +0400 |
commit | 5122e3413b06125ff45fd10e1ac1f0e58c24afcc (patch) | |
tree | 1bb7587279c702c3479ceb746c6ef449726a4948 /sd/source | |
parent | 0cf754f5ca356c2d93f7ebf8523b2dc2246e4763 (diff) |
cppcheck: avoid possible null pointer dereferences
Diffstat (limited to 'sd/source')
-rw-r--r-- | sd/source/ui/view/sdview.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sd/source/ui/view/sdview.cxx b/sd/source/ui/view/sdview.cxx index 8670778981ee..2e34358b1957 100644 --- a/sd/source/ui/view/sdview.cxx +++ b/sd/source/ui/view/sdview.cxx @@ -623,7 +623,7 @@ sal_Bool View::IsPresObjSelected(sal_Bool bOnPage, sal_Bool bOnMasterPage, sal_B if ( pObj && ( bCheckPresObjListOnly || pObj->IsEmptyPresObj() || pObj->GetUserCall() ) ) { pPage = (SdPage*) pObj->GetPage(); - bMasterPage = pPage->IsMasterPage(); + bMasterPage = pPage && pPage->IsMasterPage(); if ( (bMasterPage && bOnMasterPage) || (!bMasterPage && bOnPage) ) { |