mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-11 18:16:24 +05:00
Add protection in case of nil arguments for cgr-console for PostprocessRpcParams fixes #1642
This commit is contained in:
committed by
Dan Christian Bogos
parent
48d966e0c6
commit
cae07d1e35
@@ -58,7 +58,8 @@ func (self *CmdSessionsProcessEvent) RpcParams(reset bool) interface{} {
|
||||
}
|
||||
|
||||
func (self *CmdSessionsProcessEvent) PostprocessRpcParams() error {
|
||||
if self.rpcParams.CGREvent.Time == nil {
|
||||
if self.rpcParams != nil && self.rpcParams.CGREvent != nil &&
|
||||
self.rpcParams.CGREvent.Time == nil {
|
||||
self.rpcParams.CGREvent.Time = utils.TimePointer(time.Now())
|
||||
}
|
||||
return nil
|
||||
|
||||
Reference in New Issue
Block a user