PY-21617, PY-21614: Project name not passed to Django in plugin leading to bugs

* Plugin uses different GUI, so project name lost and project generation failed
* We know check all params are not null when passing to project generation task
This commit is contained in:
Ilya.Kazakevich
2016-11-24 19:35:29 +03:00
parent be5f337282
commit 2d7eabb7aa
@@ -48,6 +48,7 @@ import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.stream.Collectors;
/**
* TODO: Use {@link com.jetbrains.python.run.PythonRunner} instead of this class? At already supports rerun and other things
@@ -204,7 +205,7 @@ public class PythonTask {
else {
scriptParams.addParameter(myRunnerScript);
}
scriptParams.addParameters(myParameters);
scriptParams.addParameters(myParameters.stream().filter( o -> o != null).collect(Collectors.toList()));
}
PythonEnvUtil.setPythonUnbuffered(env);