diff --git a/src/plugins/debugger/breakhandler.cpp b/src/plugins/debugger/breakhandler.cpp index 3ea16649553..3820148f21c 100644 --- a/src/plugins/debugger/breakhandler.cpp +++ b/src/plugins/debugger/breakhandler.cpp @@ -1426,8 +1426,10 @@ bool BreakHandler::BreakpointItem::isLocatedAt void BreakHandler::BreakpointItem::updateMarkerIcon() { - marker->setIcon(icon()); - marker->updateMarker(); + if (marker) { + marker->setIcon(icon()); + marker->updateMarker(); + } } void BreakHandler::BreakpointItem::updateMarker(BreakpointModelId id)