From ae3483da275f8f83026bad793046d5ed4113305e Mon Sep 17 00:00:00 2001 From: Christian Stenger Date: Wed, 21 Sep 2016 14:56:59 +0200 Subject: [PATCH] Debugger: Avoid null pointer access Change-Id: I85cc637d60797bfa182c045b81d3520919bbfde9 Reviewed-by: hjk --- src/plugins/debugger/watchhandler.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/debugger/watchhandler.cpp b/src/plugins/debugger/watchhandler.cpp index d369c40e8b7..ff50016f3a6 100644 --- a/src/plugins/debugger/watchhandler.cpp +++ b/src/plugins/debugger/watchhandler.cpp @@ -1056,7 +1056,7 @@ bool WatchModel::setData(const QModelIndex &idx, const QVariant &value, int role } if (ev.as(QEvent::MouseButtonDblClick)) { - if (!item->parent()) { // if item is the invisible root item + if (item && !item->parent()) { // if item is the invisible root item inputNewExpression(); return true; }