sc/source/ui/unoobj/docuno.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit d013199f5beb79ac047da83429b14d7bde6c3546 Author: Caolán McNamara <[email protected]> AuthorDate: Sun Sep 1 11:17:45 2024 +0100 Commit: Xisco Fauli <[email protected]> CommitDate: Mon Sep 2 10:53:55 2024 +0200 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/+/172678 Tested-by: Jenkins Reviewed-by: Caolán McNamara <[email protected]> (cherry picked from commit fc7e5f54edcc0fccf3b9c2f8395336e7dbc0bfc4) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/172679 Reviewed-by: Xisco Fauli <[email protected]> diff --git a/sc/source/ui/unoobj/docuno.cxx b/sc/source/ui/unoobj/docuno.cxx index 82f4286353fa..1f67c756a35a 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) {
