Open Vladislav0Art opened 2 months ago
I could replicate the same issue by changing the generated test's name and then attempting to delete the test. It leads to the same error as above, and the test not being deleted:
java.lang.NullPointerException
at org.jetbrains.research.testspark.display.generatedTests.GenerateTestsTabHelper.removeTestCase(GenerateTestsTabHelper.kt:11)
at org.jetbrains.research.testspark.display.generatedTests.TestCasePanelBuilder.remove(TestCasePanelBuilder.kt:617)
at org.jetbrains.research.testspark.display.generatedTests.TestCasePanelBuilder.getBottomPanel$lambda$10(TestCasePanelBuilder.kt:305)
@dragoi75 Hi! Thanks for pointing to the reproduction steps! Taking this into work.
Describe the bug Deletion of a test case inflicted a
NullPointerException
.To Reproduce I missed the entire sequence of actions that led to the error, but I did not follow, and the error occurred (these steps may not yield the error!):
Expected behavior Either a test case gets deleted or no-op.
Additional context See a full stack trace below; here is the part of our code:
The full stack trace is as follows: