We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6ef8ca9 commit 8505f81Copy full SHA for 8505f81
rviz_common/include/rviz_common/properties/ros_topic_property.hpp
@@ -62,7 +62,7 @@ class RVIZ_COMMON_PUBLIC RosTopicProperty : public EditableEnumProperty
62
void setMessageTypes(const std::vector<QString> & message_types);
63
64
QString getMessageType() const
65
- {return message_types_.front();}
+ {return message_types_.empty() ? QString() : message_types_.front();}
66
67
std::vector<QString> getMessageTypes() const
68
{return message_types_;}
0 commit comments