mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-15 13:19:53 +05:00
CallDescritor fix to avoid panic on RefundIncrements
This commit is contained in:
@@ -839,6 +839,9 @@ func (cd *CallDescriptor) RefundIncrements() (err error) {
|
||||
cd.Increments.Decompress()
|
||||
accMap := make(utils.StringMap)
|
||||
for _, increment := range cd.Increments {
|
||||
if increment.BalanceInfo == nil {
|
||||
continue
|
||||
}
|
||||
if increment.BalanceInfo.Monetary != nil || increment.BalanceInfo.Unit != nil {
|
||||
accMap[utils.ACCOUNT_PREFIX+increment.BalanceInfo.AccountID] = true
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user