The message summary funciton was attempting to reference
a payload when RMR left it as a null pointer.
Signed-off-by: E. Scott Daniels <daniels@research.att.com>
Change-Id: Id1e6da44c9f79d8f69f5266b9bed1f25dd8af0d9
and this project adheres to `Semantic
Versioning <http://semver.org/>`__.
+[0.13.4] - 10/21/2019
+--------------------
+
+::
+
+ * Correct cause of nil pointer exception in message summary.
+
[0.13.3] - 10/10/2019
--------------------
dict message summary
"""
return {
- "payload": get_payload(ptr_mbuf),
+ "payload": get_payload(ptr_mbuf) if ptr_mbuf.contents.state == RMR_OK else None,
"payload length": ptr_mbuf.contents.len,
"message type": ptr_mbuf.contents.mtype,
"subscription id": ptr_mbuf.contents.sub_id,
setup(
name="rmr",
- version="0.13.3",
+ version="0.13.4",
packages=find_packages(),
author="Tommy Carpenter, E. Scott Daniels",
description="Python wrapper for RIC RMR",
"message state": 12,
"message type": 666,
"message status": "RMR_ERR_TIMEOUT",
- "payload": b"testttt",
+ "payload": None,
"payload length": 7,
"payload max size": 4096,
"subscription id": 0,