summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLaurent Montel <[email protected]>2018-12-16 12:21:37 +0100
committerLaurent Montel <[email protected]>2018-12-16 12:21:37 +0100
commitb23ff8e0a940c4da30fac4adef34526fd4b641bb (patch)
tree07c43166ad5bcb99901733fdb8f8efa491afb59b
parent5636ee7a5a789af7697b4577ae29e1e437c4e673 (diff)
Make sure that it doesn't crash here
-rw-r--r--src/kmmainwidget.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/kmmainwidget.cpp b/src/kmmainwidget.cpp
index c1354d5..8caa443 100644
--- a/src/kmmainwidget.cpp
+++ b/src/kmmainwidget.cpp
@@ -3603,7 +3603,9 @@ void KMMainWidget::slotPageIsScrolledToBottom(bool isAtBottom)
if (isAtBottom) {
slotSelectNextUnreadMessage();
} else {
- mMsgView->viewer()->slotJumpDown();
+ if (mMsgView) {
+ mMsgView->viewer()->slotJumpDown();
+ }
}
}