Fix missing increment in SkyFunctionEnvironment#getOrderedValuesFromErrorOrDepsOrGraph.
RELNOTES: None
@@ -436,8 +436,9 @@ class SkyFunctionEnvironment extends AbstractSkyFunctionEnvironment {
Map<SkyKey, ? extends NodeEntry> missingEntries =
evaluatorContext.getBatchValues(skyKey, Reason.DEP_REQUESTED, missingKeys);
- int i = 0;
+ int i = -1;
for (SkyKey key : keys) {
+ i++;
if (result.get(i) != null) {
continue;
}
@@ -448,7 +449,6 @@ class SkyFunctionEnvironment extends AbstractSkyFunctionEnvironment {
if (valueOrNullMarker != NULL_MARKER) {
maybeUpdateMaxChildVersion(depEntry);
}
- i++;
}
return result;
}
