From 6683597e3ad810bbbb5700d7ef7335c7bde6d4f3 Mon Sep 17 00:00:00 2001 From: Ulf Hermann Date: Mon, 4 Jul 2016 17:40:44 +0200 Subject: [PATCH] QmlProfiler: Assert for sane configuration in local runner Change-Id: Idec9531019b1b95bbacf5d5bd5ea68168e28e895 Reviewed-by: Joerg Bornemann --- src/plugins/qmlprofiler/localqmlprofilerrunner.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/plugins/qmlprofiler/localqmlprofilerrunner.cpp b/src/plugins/qmlprofiler/localqmlprofilerrunner.cpp index fed76e6a33e..3be605542ef 100644 --- a/src/plugins/qmlprofiler/localqmlprofilerrunner.cpp +++ b/src/plugins/qmlprofiler/localqmlprofilerrunner.cpp @@ -83,6 +83,8 @@ LocalQmlProfilerRunner::LocalQmlProfilerRunner(const Configuration &configuratio void LocalQmlProfilerRunner::start() { + QTC_ASSERT(!m_configuration.socket.isEmpty() || m_configuration.port.isValid(), return); + StandardRunnable runnable = m_configuration.debuggee; QString arguments = m_configuration.socket.isEmpty() ? QmlDebug::qmlDebugTcpArguments(QmlDebug::QmlProfilerServices,