Skip to content

Commit 91a41ab

Browse files
Remove newly marked as internal usage from AxonErrorReportSubmitter
1 parent 40f4680 commit 91a41ab

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/main/kotlin/org/axonframework/intellij/ide/plugin/support/AxonErrorReportSubmitter.kt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616

1717
package org.axonframework.intellij.ide.plugin.support
1818

19-
import com.intellij.diagnostic.AbstractMessage
2019
import com.intellij.ide.DataManager
2120
import com.intellij.openapi.actionSystem.CommonDataKeys
2221
import com.intellij.openapi.application.ApplicationManager
@@ -54,7 +53,7 @@ class AxonErrorReportSubmitter : ErrorReportSubmitter() {
5453
object : Task.Backgroundable(project, "Sending error report") {
5554
override fun run(indicator: ProgressIndicator) {
5655
try {
57-
val original: Throwable = (events[0].data as AbstractMessage?)?.throwable ?: return
56+
val original: Throwable = events[0].throwable ?: return
5857
service.reportException(project, original, additionalInfo)
5958
consumer.consume(SubmittedReportInfo(SubmittedReportInfo.SubmissionStatus.NEW_ISSUE))
6059
showThankYou()

0 commit comments

Comments
 (0)