From 1cdaf530cbfbb57ee1a9a9740d6e59b3949ae755 Mon Sep 17 00:00:00 2001 From: Mark Harrah Date: Wed, 16 Jan 2013 10:26:33 -0500 Subject: [PATCH] follow-up to invalidating changing artifacts: super.cacheModuleDescriptor can be null --- ivy/src/main/scala/sbt/Ivy.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ivy/src/main/scala/sbt/Ivy.scala b/ivy/src/main/scala/sbt/Ivy.scala index e4e3f26c5..fee28808e 100644 --- a/ivy/src/main/scala/sbt/Ivy.scala +++ b/ivy/src/main/scala/sbt/Ivy.scala @@ -339,7 +339,7 @@ private object IvySbt val mrid = moduleArtifact.getModuleRevisionId // only handle changing modules whose metadata actually changed. // 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) val original = rmr.getReport.getOriginalLocalFile if(original != null) {