OSDN Git Service

Fix NPE when discovering invalid GATT datatbase
authorJakub Pawlowski <jpawlowski@google.com>
Mon, 16 Jan 2017 12:05:57 +0000 (04:05 -0800)
committerAndre Eisenbach <eisenbach@google.com>
Tue, 17 Jan 2017 18:32:08 +0000 (18:32 +0000)
commit8957fdca4f6a1ba963b81983e8a40a82c3b1122d
tree4d580742a9d205310b46570476b004b9d9d93cc1
parent0c86aad3f588a5d68a2407a60e536f459b10bfeb
Fix NPE when discovering invalid GATT datatbase

When doing a discovery of invalid GATT database, where two services are
added with same start handle, characteristics are added to the first
one, where descriptors are added to the later. This cause NPE when
adding descriptor.

Bug: 34280184
Test: manual test
Change-Id: I27619098df33a641cb089b82cf4d4ffd3c6e6aea
bta/gatt/bta_gattc_cache.cc