summaryrefslogtreecommitdiff
path: root/sd
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-03-07 11:42:40 +0000
committerCaolán McNamara <caolanm@redhat.com>2014-03-07 12:19:24 +0000
commit4c69b0c00fb85a82905be61cba2fc6440344332a (patch)
tree431db4338c4d1a0b3f71671d44ca74b89f574681 /sd
parent047d71d0dd25ec3bb86cef96af77a609686302bd (diff)
coverity#735841 Dereference after null check
Change-Id: Ia6dc3065bcf6aa8e1475af8163dc5eefd9ad2f85
Diffstat (limited to 'sd')
-rw-r--r--sd/source/ui/view/viewshel.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/sd/source/ui/view/viewshel.cxx b/sd/source/ui/view/viewshel.cxx
index 3ae568ad29c1..d2752d04ac80 100644
--- a/sd/source/ui/view/viewshel.cxx
+++ b/sd/source/ui/view/viewshel.cxx
@@ -1520,7 +1520,8 @@ bool ViewShell::RelocateToParentWindow (::Window* pParentWindow)
{
mpParentWindow = pParentWindow;
- mpParentWindow->SetBackground (Wallpaper());
+ if (mpParentWindow)
+ mpParentWindow->SetBackground (Wallpaper());
if (mpContentWindow.get() != NULL)
mpContentWindow->SetParent(pParentWindow);