From 5927beb08d3e96238df573b630057ea0da44de8e Mon Sep 17 00:00:00 2001 From: Hannah von Reth Date: Fri, 27 Nov 2020 10:03:54 +0100 Subject: [PATCH] Fix potential null pointer access https://sentry.io/organizations/owncloud/issues/1529161263/events/02509984b5ca42ffb3960d9c9e161414/?project=79001&statsPeriod=14d --- src/libsync/discoveryphase.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libsync/discoveryphase.h b/src/libsync/discoveryphase.h index c0e648ba6..5c6eabd2d 100644 --- a/src/libsync/discoveryphase.h +++ b/src/libsync/discoveryphase.h @@ -157,7 +157,7 @@ class DiscoveryPhase : public QObject friend class ProcessDirectoryJob; - ProcessDirectoryJob *_currentRootJob = nullptr; + QPointer _currentRootJob; /** Maps the db-path of a deleted item to its SyncFileItem. *