Commit b0ee5e60 authored by Marco Bubke's avatar Marco Bubke

QmlDesigner: Check if process is available

It can be happen that we get output before the process is assigned.

Change-Id: I4419b125fc9e7244142c188c8bdf0a030faf850a
Reviewed-by: default avatarTim Jenssen <tim.jenssen@digia.com>
parent 36dc3fb0
......@@ -525,7 +525,7 @@ void NodeInstanceServerProxy::readThirdDataStream()
void NodeInstanceServerProxy::printEditorProcessOutput()
{
while (m_qmlPuppetEditorProcess->canReadLine()) {
while (m_qmlPuppetEditorProcess && m_qmlPuppetEditorProcess->canReadLine()) {
QByteArray line = m_qmlPuppetEditorProcess->readLine();
line.chop(1);
qDebug().nospace() << "Editor Puppet: " << qPrintable(line);
......@@ -535,7 +535,7 @@ void NodeInstanceServerProxy::printEditorProcessOutput()
void NodeInstanceServerProxy::printPreviewProcessOutput()
{
while (m_qmlPuppetPreviewProcess->canReadLine()) {
while (m_qmlPuppetPreviewProcess && m_qmlPuppetPreviewProcess->canReadLine()) {
QByteArray line = m_qmlPuppetPreviewProcess->readLine();
line.chop(1);
qDebug().nospace() << "Preview Puppet: " << qPrintable(line);
......@@ -545,7 +545,7 @@ void NodeInstanceServerProxy::printPreviewProcessOutput()
void NodeInstanceServerProxy::printRenderProcessOutput()
{
while (m_qmlPuppetRenderProcess->canReadLine()) {
while (m_qmlPuppetRenderProcess && m_qmlPuppetRenderProcess->canReadLine()) {
QByteArray line = m_qmlPuppetRenderProcess->readLine();
line.chop(1);
qDebug().nospace() << "Render Puppet: " << qPrintable(line);
......
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