mirror of
https://github.com/sbt/sbt.git
synced 2026-08-22 14:17:13 +02:00
Avoid NullPointerException in sbt.ScalaOverrideTest
This commit is contained in:
@@ -67,12 +67,14 @@ private object IvyScala {
|
||||
// Do not rewrite the dependencies of Scala dependencies themselves, this prevents bootstrapping
|
||||
// a Scala compiler using another Scala compiler.
|
||||
def dependeeQualifies: Boolean =
|
||||
dd.getParentRevisionId.getName match {
|
||||
case name @ (CompilerID | LibraryID | ReflectID | ActorsID | ScalapID) =>
|
||||
false
|
||||
case _ =>
|
||||
true
|
||||
}
|
||||
dd.getParentRevisionId == null || (
|
||||
dd.getParentRevisionId.getName match {
|
||||
case name @ (CompilerID | LibraryID | ReflectID | ActorsID | ScalapID) =>
|
||||
false
|
||||
case _ =>
|
||||
true
|
||||
}
|
||||
)
|
||||
val transformer =
|
||||
new NamespaceTransformer {
|
||||
def transform(mrid: ModuleRevisionId): ModuleRevisionId = {
|
||||
|
||||
Reference in New Issue
Block a user