summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorCaolán McNamara <caolan.mcnamara@collabora.com>2024-09-01 11:17:45 +0100
committerMiklos Vajna <vmiklos@collabora.com>2024-09-02 09:26:13 +0200
commitd859abfabadf70b232b8a5d4ab41fca2ff33a9fe (patch)
treee2834fd05425cca088e6d8f5fd489ee3ae02c091 /sc
parent040528ee50d5dbea71d22edf16578564ac1081ba (diff)
null deref of pTableView seen
#0 ImpEditView::GetOutputArea (this=<optimized out>) at editeng/source/editeng/impedit.hxx:366 #1 EditView::GetOutputArea (this=this@entry=0x0) at editeng/source/editeng/editview.cxx:442 #2 0x00007fc50355663a in ScModelObj::setTextSelection(int, int, int) () at sc/source/ui/unoobj/docuno.cxx:870 #3 0x00007fc51206e910 in doc_setTextSelection () at desktop/source/lib/init.cxx:5653 #4 0x0000000000577c54 in lok::Document::setTextSelection (nY=<optimized out>, nX=<optimized out>, nType=<optimized out>, this=<optimized out>) Change-Id: If30a32b6c365fb7fdcfcfcaa27e08ed39c75116f Reviewed-on: https://gerrit.libreoffice.org/c/core/+/172711 Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com> Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Diffstat (limited to 'sc')
-rw-r--r--sc/source/ui/unoobj/docuno.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sc/source/ui/unoobj/docuno.cxx b/sc/source/ui/unoobj/docuno.cxx
index 804fdfa3f0c1..eee0f203b73a 100644
--- a/sc/source/ui/unoobj/docuno.cxx
+++ b/sc/source/ui/unoobj/docuno.cxx
@@ -867,7 +867,7 @@ void ScModelObj::setTextSelection(int nType, int nX, int nY)
Point aPoint(convertTwipToMm100(nX), convertTwipToMm100(nY));
- if (pTableView->GetOutputArea().Contains(aPoint))
+ if (pTableView && pTableView->GetOutputArea().Contains(aPoint))
{
switch (nType)
{