Fixed checking for null current dependency version.
This commit is contained in:
parent
d4d1be7a5d
commit
fcbd5de5d6
1 changed files with 7 additions and 5 deletions
|
@ -246,15 +246,17 @@ class VersionEyePlugin @Inject constructor(val configActor: ConfigActor<VersionE
|
|||
o.getAsJsonArray("dependencies").forEach {
|
||||
val dep = it.asJsonObject
|
||||
val depName = dep.get("name").asString
|
||||
val curVer = dep.get("version_current").asString
|
||||
val curVer = dep.get("version_current")
|
||||
|
||||
// Outdated dependencies
|
||||
if (dep.get("outdated").asBoolean) {
|
||||
if (depsInfo.isNotEmpty()) {
|
||||
depsInfo.append(lf)
|
||||
if (!curVer.isJsonNull) {
|
||||
if (depsInfo.isNotEmpty()) {
|
||||
depsInfo.append(lf)
|
||||
}
|
||||
depsInfo.append(Utils.redLight(" - $depName -> "
|
||||
+ curVer.asString, out_number, isFailDeps, config.colors))
|
||||
}
|
||||
depsInfo.append(Utils.redLight(" - $depName -> $curVer", out_number, isFailDeps,
|
||||
config.colors))
|
||||
}
|
||||
|
||||
// Parse licenses
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue