--- client/advertising.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/client/advertising.c b/client/advertising.c index 80a48652c..e500a2e86 100644 --- a/client/advertising.c +++ b/client/advertising.c @@ -541,8 +541,11 @@ void ad_advertise_service(DBusConnection *conn, int argc, char *argv[]) struct ad_data *data; if (argc < 2 || !strlen(argv[1])) { - print_uuid(ad.service.uuid); - bt_shell_hexdump(ad.service.data.data, ad.service.data.len); + if (ad.service.uuid) { + print_uuid(ad.service.uuid); + bt_shell_hexdump(ad.service.data.data, + ad.service.data.len); + } return; } -- 2.14.1 -- To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html