diff options
author | 2015-12-29 02:12:59 +0000 | |
---|---|---|
committer | 2015-12-30 14:44:05 +0000 | |
commit | 0fff3eb21972222446a378fc02ecd07b078b8e6a (patch) | |
tree | 3b7d717846b2d027d1291f59e7b40a56c49a5b8c /src/main/java/com/google | |
parent | 017ce7966c22b266e236dab396e05008428ef089 (diff) |
Don't attempt to get a fingerprint if there are missing skyframe values
Fixes #742.
--
MOS_MIGRATED_REVID=111043129
Diffstat (limited to 'src/main/java/com/google')
-rw-r--r-- | src/main/java/com/google/devtools/build/lib/rules/repository/RepositoryDelegatorFunction.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/main/java/com/google/devtools/build/lib/rules/repository/RepositoryDelegatorFunction.java b/src/main/java/com/google/devtools/build/lib/rules/repository/RepositoryDelegatorFunction.java index a0d318db22..2d8ecd3939 100644 --- a/src/main/java/com/google/devtools/build/lib/rules/repository/RepositoryDelegatorFunction.java +++ b/src/main/java/com/google/devtools/build/lib/rules/repository/RepositoryDelegatorFunction.java @@ -101,6 +101,9 @@ public class RepositoryDelegatorFunction implements SkyFunction { // and the state of the file system would be inconsistent. byte[] ruleSpecificData = handler.getRuleSpecificMarkerData(rule, env); + if (ruleSpecificData == null) { + return null; + } boolean markerUpToDate = handler.isFilesystemUpToDate(rule, ruleSpecificData); if (markerUpToDate && repoRoot.exists()) { // Now that we know that it exists, we can declare a Skyframe dependency on the repository |