From d23311ca50b611888c4a3a6f6cef00d89dabce4a Mon Sep 17 00:00:00 2001 From: "Gregory.Shrago" Date: Fri, 30 Jun 2017 01:40:53 +0300 Subject: [PATCH] java.lang.IllegalStateException: element.parent must not be null --- python/src/com/jetbrains/python/testing/PyTestsShared.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/src/com/jetbrains/python/testing/PyTestsShared.kt b/python/src/com/jetbrains/python/testing/PyTestsShared.kt index 8f6e33a4fbc9..b1ee4474ec2e 100644 --- a/python/src/com/jetbrains/python/testing/PyTestsShared.kt +++ b/python/src/com/jetbrains/python/testing/PyTestsShared.kt @@ -700,7 +700,7 @@ object PyTestsConfigurationProducer : com.jetbrains.python.testing.AbstractPytho } } } - element = element.parent + element = element.parent ?: break } while (element !is com.intellij.psi.PsiDirectory) // if parent is folder, then we are at file level return null