NPE after pressing CTRL+B in the client #324

This commit is contained in:
Peter Palaga
2021-01-09 00:12:13 +01:00
parent ddea5d8ea8
commit 7dd3d5da70

View File

@@ -237,7 +237,7 @@ public class TerminalOutput implements ClientOutput {
}
case Message.MOJO_STARTED: {
final MojoStartedEvent execution = (MojoStartedEvent) entry;
final Project prj = projects.get(execution.getArtifactId());
final Project prj = projects.computeIfAbsent(execution.getArtifactId(), Project::new);
prj.runningExecution = execution;
break;
}