1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-08-14 19:55:45 +02:00

Bug 155816: NPE thrown by info threads.

Applied patch from James Blackburn (jamesblackburn+eclipse@gmail.com).
This commit is contained in:
Mikhail Khodjaiants 2006-08-31 14:22:58 +00:00
parent 9e23abbfb2
commit 62a4d11277
2 changed files with 6 additions and 1 deletions

View file

@ -1,3 +1,8 @@
2006-08-31 Mikhail Khodjaiants
Bug 155816: NPE thrown by info threads
Applied patch from James Blackburn (jamesblackburn+eclipse@gmail.com).
* Target.java
2006-08-22 Mikhail Khodjaiants
Bug 145758: Unable to use the default command factories.
* MANIFEST.MF

View file

@ -345,6 +345,7 @@ public class Target extends SessionObject implements ICDITarget {
} else {
ids = info.getThreadIds();
names = info.getThreadNames();
currentThreadId = info.getCurrentThread();
}
if (ids != null && ids.length > 0) {
cthreads = new Thread[ids.length];
@ -362,7 +363,6 @@ public class Target extends SessionObject implements ICDITarget {
// Provide a dummy.
cthreads = new Thread[]{new Thread(this, 0)};
}
currentThreadId = info.getCurrentThread();
// FIX: When attaching there is no thread selected
// We will choose the first one as a workaround.
if (currentThreadId == 0 && cthreads.length > 0) {