ANQPFactory: catch all potential parsing errors

Fix Merge Conflict for nyc-release

The ANQP Element parsing code that parses untrusted data broadcasted
by APs is currently untested, and might contain errors that will
trigger exceptions that can crash the system service (e.g. null pointer
exceptions).

To contain this risk, catch all possible exceptions from the invoking
ANQP element parsing code from ANQPFactory, and throw them again
as ProtocolExceptions, which users of ANQPFactory already catch.

BUG: 30230534
Change-Id: Icaba02c0e6739d94482cf4a5e704b59f8d4105b4
(cherry picked from commit c2905409c20c8692d4396b8531b09e7ec81fa3fb)
1 file changed
tree: 8ed6c29703c374c6fb2065dfb250c5f51d4b2091
  1. service/
  2. tests/