Fixes panic for AttributeSv1.ProcessEvent with no attribute profile to match

This commit is contained in:
Trial97
2019-02-25 09:54:54 +02:00
committed by Dan Christian Bogos
parent f899284ae1
commit dcd645bbe5
2 changed files with 8 additions and 7 deletions

View File

@@ -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)