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

coverity#704768 Dereference after null check

Change-Id: Ia101fcbc4b7288bccdc2fbd990124f4381f6f7f4
üst a91d7e2d
......@@ -529,10 +529,18 @@ bool SlideSorter::RelocateToWindow (::Window* pParentWindow)
ReleaseListeners();
if (mpViewShell != NULL)
Window *pParentWindow;
if (mpViewShell)
{
mpViewShell->ViewShell::RelocateToParentWindow(pParentWindow);
pParentWindow = mpViewShell->GetParentWindow();
}
else
{
pParentWindow = NULL;
}
SetupControls(mpViewShell->GetParentWindow());
SetupControls(pParentWindow);
SetupListeners();
// For accessibility we have to shortly hide the content window. This
......
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