[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kdevelop-bugs
Subject:    [Bug 235422] Crash on closing kdevelop with running debug session
From:       Niko Sams <niko.sams () gmail ! com>
Date:       2010-05-29 9:16:15
Message-ID: 20100529091615.C918441825 () immanuel ! kde ! org
[Download RAW message or body]

https://bugs.kde.org/show_bug.cgi?id=235422


Niko Sams <niko.sams@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |FIXED




--- Comment #2 from Niko Sams <niko sams gmail com>  2010-05-29 11:16:13 ---
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:

-- 
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
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic