mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
NPE on reading run configurations from old PyCharm
This commit is contained in:
@@ -54,7 +54,8 @@ public abstract class AbstractPythonTestRunConfiguration extends AbstractPythonR
|
||||
myFolderName = JDOMExternalizerUtil.readField(element, "FOLDER_NAME");
|
||||
|
||||
try {
|
||||
myTestType = TestType.valueOf(JDOMExternalizerUtil.readField(element, "TEST_TYPE"));
|
||||
final String testType = JDOMExternalizerUtil.readField(element, "TEST_TYPE");
|
||||
myTestType = testType != null ? TestType.valueOf(testType) : TestType.TEST_SCRIPT;
|
||||
}
|
||||
catch (IllegalArgumentException e) {
|
||||
myTestType = TestType.TEST_SCRIPT; // safe default
|
||||
|
||||
Reference in New Issue
Block a user