fkie_node_manager: fix crash on unknown diagnostic level
@@ -1523,6 +1523,8 @@ class MasterViewProxy(QWidget):
added_diags = []
for diag_status in reversed(node.diagnostic_array):
if node.diagnostic_array:
+ level_str = 'Unknown'
+ if diag_status.level in self.DIAGNOSTIC_LEVELS:
level_str = self.DIAGNOSTIC_LEVELS[diag_status.level]
diag_color = '#FF6600'
if diag_status.level == 2:
