Commit a246e432 authored by hjk's avatar hjk

Debugger: Make safety check safer

This amends change ad55631c.

Change-Id: If0679ee2f3559fd3d1b2ef57e7456a159dd25b3b
Task-number: QTCREATORBUG-16180
Reviewed-by: Christian Stenger's avatarChristian Stenger <christian.stenger@qt.io>
parent 384d6661
......@@ -2022,7 +2022,8 @@ void DebuggerEngine::updateItem(const QByteArray &iname)
showMessage(QString::fromLatin1("IGNORING REPEATED REQUEST TO EXPAND " + iname));
WatchHandler *handler = watchHandler();
WatchItem *item = handler->findItem(iname);
if (!item->hasChildren()) {
QTC_CHECK(item);
if (item && !item->hasChildren()) {
handler->notifyUpdateStarted({iname});
item->setValue(decodeData({}, "notaccessible"));
item->setHasChildren(false);
......
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