Skip to content

Commit ae3a6eb

Browse files
author
Sergii Gnatiuk
committed
fix exception on project opening
1 parent b94cd3c commit ae3a6eb

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/main/kotlin/com/github/surpsg/diffcoverage/domain/CoverageSuiteBundleWithStat.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@ class CoverageSuiteBundleWithStat(suite: CoverageSuite) : CoverageSuitesBundle(s
1010
.map { it.getCoverageData(null) }
1111
.map { it as? ProjectDataWithStat }
1212
.filterNotNull()
13-
.first()
14-
.apply {
13+
.firstOrNull()
14+
?.apply {
1515
super.getCoverageData()?.let {
1616
merge(it)
1717
}
18-
}
18+
} ?: ProjectDataWithStat(CoverageStat(emptyMap()))
1919
}
2020
}

0 commit comments

Comments
 (0)