Kaydet (Commit) 4c69b0c0 authored tarafından Caolán McNamara's avatar Caolán McNamara

coverity#735841 Dereference after null check

Change-Id: Ia6dc3065bcf6aa8e1475af8163dc5eefd9ad2f85
üst 047d71d0
...@@ -1520,7 +1520,8 @@ bool ViewShell::RelocateToParentWindow (::Window* pParentWindow) ...@@ -1520,7 +1520,8 @@ bool ViewShell::RelocateToParentWindow (::Window* pParentWindow)
{ {
mpParentWindow = pParentWindow; mpParentWindow = pParentWindow;
mpParentWindow->SetBackground (Wallpaper()); if (mpParentWindow)
mpParentWindow->SetBackground (Wallpaper());
if (mpContentWindow.get() != NULL) if (mpContentWindow.get() != NULL)
mpContentWindow->SetParent(pParentWindow); mpContentWindow->SetParent(pParentWindow);
......
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