fix: handle null workshop details in ticket display logic

This commit is contained in:
2026-01-04 17:54:59 +03:30
parent a16c20440b
commit 8f10f7057c
2 changed files with 5 additions and 1 deletions

View File

@@ -407,6 +407,10 @@ public class WorkshopAppliction : IWorkshopApplication
public EditWorkshop GetDetails(long id)
{
var workshop = _workshopRepository.GetDetails(id);
if (workshop == null)
{
return null;
}
if (workshop.IsClassified)
{
workshop.CreatePlan = _workshopPlanApplication.GetWorkshopPlanByWorkshopId(id);