MSP-841 fix panic when update application

This commit is contained in:
DeniskaRediska committed 2022-07-22 14:21:46 +03:00
1 parent bcd4083dd9
commit e1f081bf63
1 file changed
+1 -1
+1 -1
View File
@@ -215,7 +215,7 @@ func (s Application) CreateUpdate(ctx context.Context, req domain.ApplicationCre
return result[0], nil
}
if existed.Id != req.Id {
if existed != nil && existed.Id != req.Id {
return nil, domain.ErrApplicationDuplicateName
}