diff options
author | Caolán McNamara <caolan.mcnamara@collabora.com> | 2024-11-07 11:57:14 +0000 |
---|---|---|
committer | Caolán McNamara <caolan.mcnamara@collabora.com> | 2024-11-07 17:15:55 +0100 |
commit | 0fe2b2545da977cd462c06e2a6ec6551b9903497 (patch) | |
tree | 633eacc2b63250cc4725856c1a803596ec5932dd /compilerplugins/clang/test/passstuffbyref.cxx | |
parent | 0f39e6fbb48dae29778c305ddd576d698a8251ad (diff) |
don't deref null m_pDocShell
in the case of a failed load m_pDocShell is null and continuing
is pointless.
#0 0x00007efca0f0b157 in SwDocShell::GetView (this=0x0) at sw/inc/docsh.hxx:223
#1 SwXTextDocument::getViewRenderState(SfxViewShell*) () at sw/source/uibase/uno/unotxdoc.cxx:3448
#2 0x00007efcaec1d252 in doc_getCommandValues () at /opt/rh/devtoolset-12/root/usr/include/c++/12/bits/allocator.h:174
#3 0x00000000005d8195 in lok::Document::getCommandValues (pCommand=0xb1ba39 ".uno:ViewRenderState", this=<optimized out>)
at include/LibreOfficeKit/LibreOfficeKit.hxx:492
#4 Document::load(std::shared_ptr<ChildSession> const&, std::string const&) () at kit/Kit.cpp:2012
#5 0x00000000005da582 in Document::onLoad(std::string const&, std::string const&, std::string const&) () at kit/Kit.cpp:1227
Change-Id: I5bc1415b06de4aea6a950486840e45773e61b78d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176221
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Tested-by: Jenkins
Diffstat (limited to 'compilerplugins/clang/test/passstuffbyref.cxx')
0 files changed, 0 insertions, 0 deletions