Commit d91bcffc authored by Benedikt Kleinmeier's avatar Benedikt Kleinmeier

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) {
VadereConfig.getConfig().getString("History.lastUsedProject");
if (lastUsedProjectPath != null && lastUsedProjectPath.isBlank() == false) {
if (Files.exists(Paths.get(lastUsedProjectPath))) {
ActionLoadProject.loadProjectByPath(model, lastUsedProjectPath);
}
......
Markdown is supported
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