java.lang.IllegalStateException: element.parent must not be null

This commit is contained in:
Gregory.Shrago
2017-06-30 01:40:53 +03:00
parent dd1ef4e791
commit d23311ca50
@@ -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