Skip to content

Commit a5607d5

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

4 files changed

Lines changed: 9 additions & 5 deletions

File tree

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@
33
# diff-coverage-idea-plugin Changelog
44

55
## [Unreleased]
6+
### Fixed
7+
- fixed error on project open
8+
9+
## [1.0.0]
610
### Added
711
- Keep diff coverage configuration settings per IDE session
812
- Added option to set up min coverage in run configuration

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
pluginGroup = com.github.surpsg.diffcoverage
55
pluginName = Diff Coverage
6-
pluginVersion = 1.0.0
6+
pluginVersion = 1.0.1
77
pluginSinceBuild = 203
88
pluginUntilBuild = 211.*
99
pluginVerifierIdeVersions = 2020.3.2, 2020.3.3, 2021.1

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
}

src/main/resources/META-INF/plugin.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
]]></description>
1414

1515
<change-notes>Initial release of the plugin.</change-notes>
16-
<version>1.0.0</version>
16+
<version>1.0.1</version>
1717

1818
<!-- Product and plugin compatibility requirements -->
1919
<!-- https://www.jetbrains.org/intellij/sdk/docs/basics/getting_started/plugin_compatibility.html -->

0 commit comments

Comments
 (0)