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:
parent
9e23abbfb2
commit
62a4d11277
2 changed files with 6 additions and 1 deletions
|
@ -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
|
2006-08-22 Mikhail Khodjaiants
|
||||||
Bug 145758: Unable to use the default command factories.
|
Bug 145758: Unable to use the default command factories.
|
||||||
* MANIFEST.MF
|
* MANIFEST.MF
|
||||||
|
|
|
@ -345,6 +345,7 @@ public class Target extends SessionObject implements ICDITarget {
|
||||||
} else {
|
} else {
|
||||||
ids = info.getThreadIds();
|
ids = info.getThreadIds();
|
||||||
names = info.getThreadNames();
|
names = info.getThreadNames();
|
||||||
|
currentThreadId = info.getCurrentThread();
|
||||||
}
|
}
|
||||||
if (ids != null && ids.length > 0) {
|
if (ids != null && ids.length > 0) {
|
||||||
cthreads = new Thread[ids.length];
|
cthreads = new Thread[ids.length];
|
||||||
|
@ -362,7 +363,6 @@ public class Target extends SessionObject implements ICDITarget {
|
||||||
// Provide a dummy.
|
// Provide a dummy.
|
||||||
cthreads = new Thread[]{new Thread(this, 0)};
|
cthreads = new Thread[]{new Thread(this, 0)};
|
||||||
}
|
}
|
||||||
currentThreadId = info.getCurrentThread();
|
|
||||||
// FIX: When attaching there is no thread selected
|
// FIX: When attaching there is no thread selected
|
||||||
// We will choose the first one as a workaround.
|
// We will choose the first one as a workaround.
|
||||||
if (currentThreadId == 0 && cthreads.length > 0) {
|
if (currentThreadId == 0 && cthreads.length > 0) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue