Skip to content

Commit

Permalink
Prevent NPE in concurrent access by making precomputeCaches() synchro…
Browse files Browse the repository at this point in the history
…nized (#3680)
  • Loading branch information
jjohannes committed Dec 1, 2017
1 parent b633018 commit cf7821a
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -43,7 +43,7 @@ final class ImmutableModuleExclusionSet implements Set<AbstractModuleExclusion>
this.hashCode = delegate.hashCode();
}

private void precomputeCaches() {
private synchronized void precomputeCaches() {
if (excludedModules != null) {
return;
}
Expand Down

0 comments on commit cf7821a

Please sign in to comment.