Skip to content

Commit 68281f8

Browse files
niltorCopilot
andauthored
Update src/Definition/Share/Services/CommandService.cs
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 7e4bc29 commit 68281f8

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/Definition/Share/Services/CommandService.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,11 @@ out string error
104104
OutputHelper.Success($"Created new solution {solutionPath}");
105105

106106
var id = await solutionService.SaveSolutionAsync(solutionPath, dto.Name);
107+
if (id == null)
108+
{
109+
ErrorMsg = "Failed to save solution, id is null.";
110+
return false;
111+
}
107112
await projectContext.SetProjectByIdAsync(id);
108113

109114
OutputHelper.Important($"Apply settings...");

0 commit comments

Comments
 (0)