MSP-841 fix panic when update application
This commit is contained in:
1 parent
bcd4083dd9
commit
e1f081bf63
1 file changed
+1
-1
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user