YARN-5754. Null check missing for earliest in FifoPolicy. (Yufei Gu via kasha)

This commit is contained in:
Karthik Kambatla 2016-10-24 22:19:14 -07:00
parent 3372e94030
commit a71fc81655
1 changed files with 4 additions and 1 deletions

View File

@ -96,7 +96,10 @@ public class FifoPolicy extends SchedulingPolicy {
earliest = schedulable;
}
}
earliest.setFairShare(Resources.clone(totalResources));
if (earliest != null) {
earliest.setFairShare(Resources.clone(totalResources));
}
}
@Override