Fix EA-210182, check for context validity
This commit is contained in:
@@ -172,7 +172,7 @@ abstract class KtCodeFragment(
|
||||
override fun getExceptionHandler() = exceptionHandler
|
||||
|
||||
fun getContextContainingFile(): KtFile? {
|
||||
return getOriginalContext()?.containingKtFile
|
||||
return getOriginalContext()?.takeIf { it.isValid }?.containingKtFile
|
||||
}
|
||||
|
||||
fun getOriginalContext(): KtElement? {
|
||||
|
||||
Reference in New Issue
Block a user