EA-210533: fix NPE in LiftReturnOrAssignmentInspection
It may be still active after its application due to slow IDEA responsiveness Do not try to apply it again on invalid PSI elements
This commit is contained in:
+1
-1
@@ -491,7 +491,7 @@ class LiftAssignmentInspectionBasedProcessing :
|
||||
} ?: false
|
||||
|
||||
override fun apply(element: KtExpression) {
|
||||
BranchedFoldingUtils.foldToAssignment(element)
|
||||
BranchedFoldingUtils.tryFoldToAssignment(element)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user