commit | d7a7af558b2ff74e55890f618011c8d66b226fed | [log] [tgz] |
---|---|---|
author | Chris Thornton <thorntonc@google.com> | Mon Mar 20 18:24:26 2017 -0700 |
committer | Chris Thornton <thorntonc@google.com> | Thu Mar 23 15:32:59 2017 -0700 |
tree | 1141387ae4756b17641213f9dca95d1b3b59af01 | |
parent | edb79fe7f67fe496554d69c89d8f1ead987798f0 [diff] |
Prevent inclusion of null KeyphraseMetadata in info map. If getKeyphraseMetadataFromApplicationInfo encountered a parse error, it would return a null KeyphraseMetadata instance. Other parts of KeyphraseEnrollmentInfo assume that everything inserted into the member mKeyphrasePackageMap is valid, so this would cause an NPE. Bug:33448806 Test: Build a bogus enrollment APK and not see a crash. Change-Id: I0936439ea4bd0050580a7b0ee8f08f2992ebfd63