1
0
Fork 0
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:
David Inglis 2002-09-24 11:56:30 +00:00
parent 1ec92f220c
commit dcf4f87706

View file

@ -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;