mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-23 17:05:26 +02:00
check for threads should check length not for null
This commit is contained in:
parent
1ec92f220c
commit
dcf4f87706
1 changed files with 1 additions and 1 deletions
|
@ -209,7 +209,7 @@ public class CTarget implements ICDITarget {
|
|||
* @see org.eclipse.cdt.debug.core.cdi.model.ICDITarget#getThreads()
|
||||
*/
|
||||
public ICDIThread[] getThreads() throws CDIException {
|
||||
if (currentThreads == null) {
|
||||
if (currentThreads.length == 0) {
|
||||
currentThreads = getCThreads();
|
||||
}
|
||||
return currentThreads;
|
||||
|
|
Loading…
Add table
Reference in a new issue