1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-23 08:55:25 +02:00

Fix NPE found in the tests.

This commit is contained in:
Doug Schaefer 2006-01-10 18:58:38 +00:00
parent 5caada25a2
commit 720cdaacbb

View file

@ -139,7 +139,7 @@ public abstract class JobManager implements Runnable {
for (int i = jobStart; i <= jobEnd; i++) {
currentJob = awaitingJobs[i];
awaitingJobs[i] = null;
if (!(jobFamily == null
if (!(jobFamily == null || currentJob == null
|| currentJob.belongsTo(jobFamily))) { // copy down, compacting
awaitingJobs[++loc] = currentJob;
} else {