coverity#1362678 Dereference after null check

RelocateToWindow is only called by RelocateToParentWindow

RelocateToParentWindow is only called by RelocateToWindow and
ViewShellWrapper::relocateToAnchor

ViewShellWrapper::relocateToAnchor never passes nullptr as
its argument to RelocateToParentWindow

so presumably this can never be null

WriteFrameViewData was never called by that logic and
ReadFrameViewData was always called

Change-Id: Ida584b330d7c7539515a5e7287206f6469699b98
diff --git a/sd/source/ui/slidesorter/shell/SlideSorterViewShell.cxx b/sd/source/ui/slidesorter/shell/SlideSorterViewShell.cxx
index 8fd5503..0b7ce99 100644
--- a/sd/source/ui/slidesorter/shell/SlideSorterViewShell.cxx
+++ b/sd/source/ui/slidesorter/shell/SlideSorterViewShell.cxx
@@ -292,11 +292,8 @@ bool SlideSorterViewShell::RelocateToParentWindow (vcl::Window* pParentWindow)
    if ( ! mpSlideSorter)
        return false;

    if (pParentWindow == nullptr)
        WriteFrameViewData();
    const bool bSuccess (mpSlideSorter->RelocateToWindow(pParentWindow));
    if (pParentWindow != nullptr)
        ReadFrameViewData(mpFrameView);
    ReadFrameViewData(mpFrameView);

    return bSuccess;
}
diff --git a/sd/source/ui/view/viewshel.cxx b/sd/source/ui/view/viewshel.cxx
index 07c2382..942f9a5 100644
--- a/sd/source/ui/view/viewshel.cxx
+++ b/sd/source/ui/view/viewshel.cxx
@@ -1563,8 +1563,7 @@ bool ViewShell::RelocateToParentWindow (vcl::Window* pParentWindow)
{
    mpParentWindow = pParentWindow;

    if (mpParentWindow)
        mpParentWindow->SetBackground (Wallpaper());
    mpParentWindow->SetBackground (Wallpaper());

    if (mpContentWindow.get() != nullptr)
        mpContentWindow->SetParent(pParentWindow);