Merge pull request #5526 from 3rwww1/fix/npe-coursier-null-cred-realm

Fix coursierint NPE when credential realm is null
This commit is contained in:
eugene yokota 2020-06-09 14:24:24 -04:00 committed by GitHub
commit a109f3d76d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -231,7 +231,7 @@ object CoursierInputsTasks {
.withHost(c.host)
.withUsername(c.userName)
.withPassword(c.passwd)
.withRealm(Some(c.realm).filter(_.nonEmpty))
.withRealm(Option(c.realm).filter(_.nonEmpty))
.withHttpsOnly(false)
.withMatchHost(true)
}