aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Stenger <christian.stenger@qt.io>2020-07-30 12:26:42 +0200
committerChristian Stenger <christian.stenger@qt.io>2020-07-30 13:24:48 +0000
commita826267cd4aac2b9aff10a97ca1ca9818b707faa (patch)
tree467fbb5d12d7f6644bb3e933afc3ee8a0b580c26
parent6c45c3fb1c5140902028e99f25b43a2c56b7d5c1 (diff)
Tests: Fix nullptr access
Change-Id: I4e2bf36dfa6e16dfd9924c865bd9a997750243a2 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
-rw-r--r--tests/auto/extensionsystem/pluginmanager/tst_pluginmanager.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/auto/extensionsystem/pluginmanager/tst_pluginmanager.cpp b/tests/auto/extensionsystem/pluginmanager/tst_pluginmanager.cpp
index c3c144a16c..7d47a6496a 100644
--- a/tests/auto/extensionsystem/pluginmanager/tst_pluginmanager.cpp
+++ b/tests/auto/extensionsystem/pluginmanager/tst_pluginmanager.cpp
@@ -77,6 +77,7 @@ static QString pluginFolder(const QLatin1String &folder)
void tst_PluginManager::init()
{
m_pm = new PluginManager;
+ m_pm->setSettings(new QSettings);
m_pm->setPluginIID(QLatin1String("plugin"));
m_objectAdded = new QSignalSpy(m_pm, SIGNAL(objectAdded(QObject*)));
m_aboutToRemoveObject = new QSignalSpy(m_pm, SIGNAL(aboutToRemoveObject(QObject*)));