We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 63ebbbe commit 53e59f2Copy full SHA for 53e59f2
src/main/kotlin/insight/ListenerLineMarkerProvider.kt
@@ -61,6 +61,10 @@ class ListenerLineMarkerProvider : LineMarkerProviderDescriptor() {
61
// even if the event target is a nested class.
62
private fun createHandler(method: UMethod): GutterIconNavigationHandler<PsiElement> {
63
return GutterIconNavigationHandler handler@{ _, element ->
64
+ if (!method.isPsiValid) {
65
+ return@handler
66
+ }
67
+
68
// We need to re-evaluate the targeted method, because if the method signature slightly changes before
69
// IntelliJ decides to re-evaluate the method, but the class is no longer valid.
70
// In this circumstance, we can find the class anyways because it's still a valid listener.
0 commit comments