sw/source/core/frmedt/fefly1.cxx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
New commits: commit a787a3895f111615440f1f065a120d77e6560fcc Author: Mike Kaganski <[email protected]> AuthorDate: Sun Feb 8 15:03:51 2026 +0500 Commit: Mike Kaganski <[email protected]> CommitDate: Sun Feb 8 12:05:42 2026 +0100 enable-msvc-analyze: C6011: Dereferencing NULL pointer C:\lo Dereferencing NULL pointer 'this->GetSfxViewShell()'. .: Lines: 282, 283, 288, 289, 290, 291, 296, 297, 302, 308, 303, 310, 316, 318, 320, 321, 324, 325, 328, 334, 336 Change-Id: I25445de83b65fb4c1d044b8a5d3becfb15eb928a Reviewed-on: https://gerrit.libreoffice.org/c/core/+/198900 Tested-by: Jenkins Reviewed-by: Mike Kaganski <[email protected]> diff --git a/sw/source/core/frmedt/fefly1.cxx b/sw/source/core/frmedt/fefly1.cxx index 241a5272b2b2..74799c796731 100644 --- a/sw/source/core/frmedt/fefly1.cxx +++ b/sw/source/core/frmedt/fefly1.cxx @@ -333,7 +333,9 @@ void SwFEShell::UnfloatFlyFrame() // else SelectObj(Point(), 0, pAnchoredObj->DrawObj()); - GetSfxViewShell()->GetDispatcher()->Execute(FN_TOOL_ANCHOR_PARAGRAPH, + auto pSfxViewShell = GetSfxViewShell(); + assert(pSfxViewShell); + pSfxViewShell->GetDispatcher()->Execute(FN_TOOL_ANCHOR_PARAGRAPH, SfxCallMode::SYNCHRON); // Check if anchor id changed.
