Summary: | Crash on closing kdevelop with running debug session | ||
---|---|---|---|
Product: | [Applications] kdevelop | Reporter: | Gunther Piez <gpiez> |
Component: | CPP Debugger | Assignee: | kdevelop-bugs-null |
Status: | RESOLVED FIXED | ||
Severity: | crash | CC: | bugs |
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Compiled Sources | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: |
Description
Gunther Piez
2010-04-26 11:13:16 UTC
*** Bug 230479 has been marked as a duplicate of this bug. *** commit 87d6a7409b34c2b85356118514222786d3f863e1 Author: Niko Sams <niko.sams@gmail.com> Date: Sat May 29 11:11:06 2010 +0200 Fix crash when closing kdevelop with running debug session BUG: 235422 diff --git a/debugger/interfaces/ivariablecontroller.cpp b/debugger/interfaces/ivariablecontroller.cpp index 6c007f1..b15a50d 100644 --- a/debugger/interfaces/ivariablecontroller.cpp +++ b/debugger/interfaces/ivariablecontroller.cpp @@ -38,6 +38,7 @@ IVariableController::IVariableController(IDebugSession* parent) VariableCollection* IVariableController::variableCollection() { + if (!ICore::self()) return 0; return ICore::self()->debugController()->variableCollection(); } @@ -80,6 +81,8 @@ void IVariableController::updateIfFrameOrThreadChanged() void IVariableController::handleEvent(IDebugSession::event_t event) { + if (!variableCollection()) return; + switch (event) { case IDebugSession::program_state_changed: case IDebugSession::thread_or_frame_changed: |