summaryrefslogtreecommitdiff
path: root/editeng/source
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2019-06-12 10:07:03 +0100
committerCaolán McNamara <caolanm@redhat.com>2019-06-12 18:34:41 +0200
commit2b3f6d73496f7d0fb4624e1d14f66e922d05fb31 (patch)
tree70aeffa5356b50a7ddadf3b2fc5c6df2e65fe081 /editeng/source
parent3d61113a803f3d99a52ca9acce06c5dc6cb38f35 (diff)
Resolves: tdf#125866 null-deref
Change-Id: I0bd597498d10130928de5d7865219fe6f4bc8bcd Reviewed-on: https://gerrit.libreoffice.org/73880 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'editeng/source')
-rw-r--r--editeng/source/editeng/impedit.cxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/editeng/source/editeng/impedit.cxx b/editeng/source/editeng/impedit.cxx
index 551a83b4def2..0fa84e2d90a2 100644
--- a/editeng/source/editeng/impedit.cxx
+++ b/editeng/source/editeng/impedit.cxx
@@ -1142,6 +1142,9 @@ Pair ImpEditView::Scroll( long ndX, long ndY, ScrollRangeCheck nRangeCheck )
if ( !ndX && !ndY )
return Pair( 0, 0 );
+ if (!pOutWin)
+ return Pair( 0, 0 );
+
#ifdef DBG_UTIL
tools::Rectangle aR( aOutArea );
aR = pOutWin->LogicToPixel( aR );