Skip to content

Commit

Permalink
[Workspaces] eliminate crash threat (#35535)
Browse files Browse the repository at this point in the history
Co-authored-by: Seraphima <zykovas91@gmail.com>
  • Loading branch information
donlaci and SeraphimaZykova authored Oct 23, 2024
1 parent c3fe541 commit b0be69a
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -398,6 +398,11 @@ public void LaunchProject(string projectId)

public async void LaunchProject(Project project, bool exitAfterLaunch = false)
{
if (project == null)
{
return;
}

await Task.Run(() => RunLauncher(project.Id, InvokePoint.EditorButton));
if (_workspacesEditorIO.ParseWorkspaces(this).Result == true)
{
Expand Down

0 comments on commit b0be69a

Please sign in to comment.