https://bugs.kde.org/show_bug.cgi?id=235422 Niko Sams changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution| |FIXED --- Comment #2 from Niko Sams 2010-05-29 11:16:13 --- commit 87d6a7409b34c2b85356118514222786d3f863e1 Author: Niko Sams 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: -- Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug. _______________________________________________ KDevelop-bugs mailing list KDevelop-bugs@kdevelop.org https://barney.cs.uni-potsdam.de/mailman/listinfo/kdevelop-bugs