mirror of https://github.com/sbt/sbt.git
Guard ManagedChecksums setting retrieval
This setting doesn't exist for ivysettings.xml, which then causes null problem. Fixes sbt/librarymanagement#110
This commit is contained in:
parent
fae2b0de51
commit
128798247c
|
|
@ -155,7 +155,10 @@ private[sbt] object ConvertResolver {
|
|||
/** The default implementation of converter. */
|
||||
lazy val defaultConvert: ResolverConverter = {
|
||||
case (r, settings, log) =>
|
||||
val managedChecksums = settings.getVariable(ManagedChecksums).toBoolean
|
||||
val managedChecksums = Option(settings.getVariable(ManagedChecksums)) match {
|
||||
case Some(x) => x.toBoolean
|
||||
case _ => false
|
||||
}
|
||||
r match {
|
||||
case repo: MavenRepository => {
|
||||
val pattern = Collections.singletonList(
|
||||
|
|
|
|||
Loading…
Reference in New Issue