RUST-20949 Fix exception auto-reporting in RustRover 262

Merge-request: IJ-MR-220831
Merged-by: Alina Lobanova <Alina.Lobanova@jetbrains.com>

GitOrigin-RevId: a1087c6464f69f4db084358238468c557b8aaa4e
This commit is contained in:
Vladislav Beskrovny
2026-09-03 13:40:52 +00:00
committed by intellij-monorepo-bot
parent 37f576bc4e
commit fb01e86f56
2 changed files with 3 additions and 2 deletions
@@ -169,7 +169,6 @@ object ExceptionAutoReportUtil {
val cls = submitter.javaClass
return cls == ITNReporter::class.java
|| cls.name == $$"com.intellij.rustrover.RustRoverMessagePoolAutoReporter$MyITNReporter"
&& ApplicationManager.getApplication().isEAP
}
fun isFreeze(throwable: Throwable): Boolean {
@@ -367,7 +367,9 @@ object ITNProxy {
if (errorBean.isAutoReportedByPlatform) {
append(builder, "report.automatic", "true")
append(builder, "report.automatic.source", ExceptionAutoReportUtil.getAutoReportSource(event.throwable))
if (event.throwable != null) {
append(builder, "report.automatic.source", ExceptionAutoReportUtil.getAutoReportSource(event.throwable))
}
ExceptionAutoReportUtil.getAutoReportTag()?.let {
append(builder, "report.automatic.tag", it)