Code Review
/
ric-plt
/
e2mgr.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
RIC-997: ErrorIndication handling in e2mgr
[ric-plt/e2mgr.git]
/
E2Manager
/
rmrCgo
/
rmrCgoApi.go
diff --git
a/E2Manager/rmrCgo/rmrCgoApi.go
b/E2Manager/rmrCgo/rmrCgoApi.go
index
5ec09b9
..
fc5c849
100644
(file)
--- a/
E2Manager/rmrCgo/rmrCgoApi.go
+++ b/
E2Manager/rmrCgo/rmrCgoApi.go
@@
-76,6
+76,10
@@
func (ctx *Context) SendMsg(msg *MBuf, printLogs bool) (*MBuf, error) {
currCMBuf := C.rmr_send_msg(ctx.RmrCtx, allocatedCMBuf)
defer C.rmr_free_msg(currCMBuf)
currCMBuf := C.rmr_send_msg(ctx.RmrCtx, allocatedCMBuf)
defer C.rmr_free_msg(currCMBuf)
+ if currCMBuf == nil {
+ errorMessage := fmt.Sprintf("#rmrCgoApi.SendMsg - currCMBuf is empty hence return from message")
+ return nil, errors.New(errorMessage)
+ }
state = currCMBuf.state
state = currCMBuf.state