Merge pull request #111 from eed3si9n/wip/null

Guard ManagedChecksums setting retrieval
This commit is contained in:
eugene yokota 2017-05-30 00:45:13 -04:00 committed by GitHub
commit 46cc7055b1
1 changed files with 4 additions and 1 deletions

View File

@ -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(