13
0

OSC: make sure out of bank strip can not be converted to a stripable.

This commit is contained in:
Len Ovens 2016-07-01 18:31:13 -07:00
parent 3491f22c04
commit 6ed7336384

View File

@ -1486,7 +1486,7 @@ boost::shared_ptr<ARDOUR::Stripable>
OSC::get_strip (uint32_t ssid, lo_address addr)
{
OSCSurface *s = get_surface(addr);
if ((ssid + s->bank - 2) < s->nstrips) {
if (ssid && ((ssid + s->bank - 2) < s->nstrips)) {
return s->strips[ssid + s->bank - 2];
}
// guess it is out of range