Commit d91bcffc authored by Benedikt Kleinmeier's avatar Benedikt Kleinmeier
Browse files

In "ProjectView", avoid exception by testing if value for config key...

In "ProjectView", avoid exception by testing if value for config key ""History.lastUsedProject" is the empty string
parent 5d458d3e
Pipeline #164753 passed with stages
in 133 minutes and 43 seconds
......@@ -296,8 +296,8 @@ public class ProjectView extends JFrame implements ProjectFinishedListener, Sing
private void openLastUsedProject(final ProjectViewModel model) {
String lastUsedProjectPath =
VadereConfig.getConfig().getString("History.lastUsedProject", null);
if (lastUsedProjectPath != null) {
if (lastUsedProjectPath != null && lastUsedProjectPath.isBlank() == false) {
if (Files.exists(Paths.get(lastUsedProjectPath))) {
ActionLoadProject.loadProjectByPath(model, lastUsedProjectPath);
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment