diff --git a/system/rqt_diagnostic_graph_monitor/python/module.py b/system/rqt_diagnostic_graph_monitor/python/module.py index 74294659..96f17c2e 100644 --- a/system/rqt_diagnostic_graph_monitor/python/module.py +++ b/system/rqt_diagnostic_graph_monitor/python/module.py @@ -43,6 +43,8 @@ def on_struct(self, msg): foreach(self.struct_callbacks, lambda callback: callback(self.graph)) def on_status(self, msg): + if self.graph is None: + return self.graph.update(msg) foreach(self.status_callbacks, lambda callback: callback(self.graph))