From 005907225b376335545744e78a3bdfaec5ad0f90 Mon Sep 17 00:00:00 2001 From: Kitsune Ral Date: Thu, 8 Sep 2016 11:21:39 +0900 Subject: Connection: Fixed an unguarded usage of d->syncJob pointer --- connection.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/connection.cpp b/connection.cpp index 08f6c241..1949b34d 100644 --- a/connection.cpp +++ b/connection.cpp @@ -147,7 +147,8 @@ void Connection::reconnect() void Connection::disconnectFromServer() { - d->syncJob->abandon(); + if (d->syncJob) + d->syncJob->abandon(); d->isConnected = false; } -- cgit v1.2.3