mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-16 13:49:53 +05:00
Fixes panic for AttributeSv1.ProcessEvent with no attribute profile to match
This commit is contained in:
committed by
Dan Christian Bogos
parent
f899284ae1
commit
dcd645bbe5
@@ -215,7 +215,8 @@ func (alS *AttributeService) V1ProcessEvent(args *AttrArgsProcessEvent,
|
||||
}
|
||||
var apiRply *AttrSProcessEventReply // aggregate response here
|
||||
for i := 0; i < *args.ProcessRuns; i++ {
|
||||
evRply, err := alS.processEvent(args)
|
||||
var evRply *AttrSProcessEventReply
|
||||
evRply, err = alS.processEvent(args)
|
||||
if err != nil {
|
||||
if err != utils.ErrNotFound {
|
||||
err = utils.NewErrServerError(err)
|
||||
|
||||
Reference in New Issue
Block a user