summaryrefslogtreecommitdiffstats
path: root/editeng
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-13 11:32:28 +0200
commit1325505f943e2a690a620e96c20d7eeb2dac4945 (patch)
tree0bde5987f83c79f9541d62840583392d8bf65c04 /editeng
parenttdf#95173 vcl: fix partially drawn progressbar widget (diff)
downloadcore-1325505f943e2a690a620e96c20d7eeb2dac4945.tar.gz
core-1325505f943e2a690a620e96c20d7eeb2dac4945.zip
Resolves: tdf#125866 null-deref
Change-Id: I0bd597498d10130928de5d7865219fe6f4bc8bcd Reviewed-on: https://gerrit.libreoffice.org/73882 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'editeng')
-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 );