On Fri, 2014-08-22 at 11:07 +0300, Luiz Augusto von Dentz wrote: > From: Luiz Augusto von Dentz <luiz.von.dentz at intel.com> > > It is an error if a transport has no matching profile. > --- > src/modules/bluetooth/module-bluez5-device.c | 4 +--- > 1 file changed, 1 insertion(+), 3 deletions(-) > > diff --git a/src/modules/bluetooth/module-bluez5-device.c b/src/modules/bluetooth/module-bluez5-device.c > index 77964c1..eb6b48b 100644 > --- a/src/modules/bluetooth/module-bluez5-device.c > +++ b/src/modules/bluetooth/module-bluez5-device.c > @@ -1890,10 +1890,8 @@ static void handle_transport_state_change(struct userdata *u, struct pa_bluetoot > > pa_assert(u); > pa_assert(t); > + pa_assert(cp = pa_hashmap_get(u->card->profiles, pa_bluetooth_profile_to_string(t->profile))); Remember to use pa_assert_se() when the assertion has side effects. I fixed this and pushed the patch set, thanks for your work! -- Tanu