aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Vrátil <[email protected]>2017-08-01 19:56:34 +0200
committerDaniel Vrátil <[email protected]>2017-08-01 19:57:11 +0200
commit6b26778c6b99d3fa239e312fdf3ce0f52aae5c12 (patch)
tree84b7fee34c4577ecbce63e1f292d60709ebb9e3b
parent8bf5a5e4ea9b040960b9ee15d17f788b46104239 (diff)
ChangeRecorder: fix potential crash when replaying notificationsv17.07.90
-rw-r--r--src/core/changerecorder_p.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/changerecorder_p.cpp b/src/core/changerecorder_p.cpp
index 6da3758..a8e93bd 100644
--- a/src/core/changerecorder_p.cpp
+++ b/src/core/changerecorder_p.cpp
@@ -190,7 +190,7 @@ QQueue<Protocol::ChangeNotificationPtr> ChangeRecorderPrivate::loadFrom(QFile *d
continue;
}
- if (msg->isValid()) {
+ if (msg && msg->isValid()) {
msg->setSessionId(sessionId);
list << msg;
}