Commit fdf6f83a authored by Erik Verbruggen's avatar Erik Verbruggen Committed by Kai Koehne

QML Debugger: prevent possible nullptr deref.

Change-Id: I9a3766665bae737a15aac18900185edb2c0ad87b
Reviewed-by: default avatarKai Koehne <kai.koehne@digia.com>
parent 5c6b1373
......@@ -80,7 +80,7 @@ QmlAdapter::~QmlAdapter()
void QmlAdapter::beginConnectionTcp(const QString &address, quint16 port)
{
if (m_engine.isNull() || (m_conn && m_conn->isOpen()))
if (m_engine.isNull() || !m_conn || m_conn->isOpen())
return;
m_conn->connectToHost(address, port);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment