diff --git a/python/src/com/jetbrains/python/run/PythonRunConfigurationForm.java b/python/src/com/jetbrains/python/run/PythonRunConfigurationForm.java index cffb2af24ae9..c3b914001b9a 100644 --- a/python/src/com/jetbrains/python/run/PythonRunConfigurationForm.java +++ b/python/src/com/jetbrains/python/run/PythonRunConfigurationForm.java @@ -62,7 +62,7 @@ public class PythonRunConfigurationForm implements PythonRunConfigurationParams } public void setScriptName(String scriptName) { - myScriptTextField.setText(FileUtil.toSystemDependentName(scriptName)); + myScriptTextField.setText(scriptName == null ? "" : FileUtil.toSystemDependentName(scriptName)); } public String getScriptParameters() {