Commit 16a81369 authored by Robert Loehning's avatar Robert Loehning Committed by Aurindam Jana

Improved check for NULL-pointer deref

Change-Id: I48c49f1463a70c269ac25dc1ea691d020724abb8
Reviewed-by: default avatarAurindam Jana <>
parent 455b677f
......@@ -285,7 +285,7 @@ void QmlInspectorAdapter::createPreviewForEditor(Core::IEditor *newEditor)
if (!m_engineClientConnected)
if (newEditor && newEditor->id()
if (!newEditor || newEditor->id()
!= QmlJSEditor::Constants::C_QMLJSEDITOR_ID)
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