make MeterStrip::state_id() safe against null _route member

This commit is contained in:
Paul Davis 2015-04-01 11:57:20 -04:00
parent 7b844a52ee
commit 9b2a78a0b2
1 changed files with 5 additions and 1 deletions

View File

@ -350,7 +350,11 @@ MeterStrip::blink_rec_display (bool onoff)
std::string
MeterStrip::state_id() const
{
return string_compose ("mtrs %1", _route->id().to_s());
if (_route) {
return string_compose ("mtrs %1", _route->id().to_s());
} else {
return string ();
}
}
void