Diff between fde2b0580e84be7524ad3e6e5c66b3da78714033 and e10c204e1226e94a1eaaeaee076e7e2e5b13c504
Changed Files
| File | Additions | Deletions | Status |
| src/gatt-database.c | +3 | -0 | modified |
Full Patch
diff --git a/src/gatt-database.c b/src/gatt-database.c
index 1cdc72e..0ac5b75 100644
--- a/src/gatt-database.c
+++ b/src/gatt-database.c
@@ -3330,6 +3330,9 @@ void btd_gatt_database_restore_svc_chng_ccc(struct btd_gatt_database *database)
uint8_t value[4];
uint16_t handle, ccc_handle;
+ if (!database)
+ return;
+
handle = gatt_db_attribute_get_handle(database->svc_chngd);
ccc_handle = gatt_db_attribute_get_handle(database->svc_chngd_ccc);