make MeterStrip::state_id() safe against null _route member
This commit is contained in:
parent
7b844a52ee
commit
9b2a78a0b2
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user