Skip to content

Commit

Permalink
Catch throwable instead of exception in runningInIdeaJavaAgent (#220)
Browse files Browse the repository at this point in the history
  • Loading branch information
ajalt authored Sep 1, 2024
1 parent d9f45a9 commit 592d1f3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
### Fixed
- Fixed ConcurrentModificationException from progress bars when updated under very high concurrency [(#204)](https://github.com/ajalt/mordant/issues/204)
- Improved performance of progress bars under high concurrency. [(#207)](https://github.com/ajalt/mordant/issues/207)
- Fixed `NoClassDefFoundError` when running with certain gradle plugins [(#217)](https://github.com/ajalt/mordant/issues/217)

## 2.7.2
### Fixed
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ internal actual fun runningInIdeaJavaAgent() = try {
val bean = ManagementFactory.getRuntimeMXBean()
val jvmArgs = bean.inputArguments
jvmArgs.any { it.startsWith("-javaagent") && "idea_rt.jar" in it }
} catch (e: Exception) {
} catch (e: Throwable) {
false
}

Expand Down

0 comments on commit 592d1f3

Please sign in to comment.