WaE: C6011 Dereferencing NULL pointer warnings

Change-Id: Ic67e884555517620acb6d43bafc28e8291720913
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/167770
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Tested-by: Jenkins
This commit is contained in:
Caolán McNamara 2024-05-17 11:57:19 +01:00
parent cb4e9a7bf2
commit 7c25b9c2a0

View file

@ -5113,8 +5113,8 @@ void LibLibreOffice_Impl::dumpState(rtl::OStringBuffer &rState)
rState.append("\n\tCallbackData:\t0x");
rState.append(reinterpret_cast<sal_Int64>(mpCallback), 16);
rState.append("\n\tIsModified:\t");
if (SfxObjectShell::Current())
rState.append(SfxObjectShell::Current()->IsModified() ? "modified" : "unmodified");
if (const SfxObjectShell* pObjSh = SfxObjectShell::Current())
rState.append(pObjSh->IsModified() ? "modified" : "unmodified");
else
rState.append("noshell");
// TODO: dump mInteractionMap