mirror of https://github.com/sbt/sbt.git
follow-up to invalidating changing artifacts: super.cacheModuleDescriptor can be null
This commit is contained in:
parent
b212d80ac6
commit
95ded675b1
|
|
@ -339,7 +339,7 @@ private object IvySbt
|
||||||
val mrid = moduleArtifact.getModuleRevisionId
|
val mrid = moduleArtifact.getModuleRevisionId
|
||||||
// only handle changing modules whose metadata actually changed.
|
// only handle changing modules whose metadata actually changed.
|
||||||
// Typically, the publication date in the metadata has to change to get here.
|
// Typically, the publication date in the metadata has to change to get here.
|
||||||
if(rmr.getReport != null && rmr.getReport.isSearched && isChanging(dd, mrid)) {
|
if(rmr != null && rmr.getReport != null && rmr.getReport.isSearched && isChanging(dd, mrid)) {
|
||||||
// this is the locally cached metadata as originally retrieved (e.g. the pom)
|
// this is the locally cached metadata as originally retrieved (e.g. the pom)
|
||||||
val original = rmr.getReport.getOriginalLocalFile
|
val original = rmr.getReport.getOriginalLocalFile
|
||||||
if(original != null) {
|
if(original != null) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue