OSDN Git Service

Fix null pointer exception when surveys are turned off
authorSalvador Martinez <dehboxturtle@google.com>
Tue, 24 Jan 2017 23:16:52 +0000 (15:16 -0800)
committerSalvador Martinez <dehboxturtle@google.com>
Fri, 27 Jan 2017 18:29:10 +0000 (10:29 -0800)
commit9db3cb3bee156b630c48c781108444e594a79215
tree1e259a58452b08f6aee75563ebe65777381a44ee
parentbd16255ee18f73ce1e0303f398fc6d32da54db93
Fix null pointer exception when surveys are turned off

In some conditions the survey provider could be null on
download completion which could lead to a NPE. This
has been addressed by not requiring an instance for
the removal of the receiver.

Test: RunSettingsRoboTests (master)
Bug: 33707203
Change-Id: Id1ab1a24c697fed8e4dd259682a088b50c35f38a
Merged-In: Icfb545697f24172db734dd7dad421796edf68186
src/com/android/settings/InstrumentedFragment.java
src/com/android/settings/InstrumentedPreferenceFragment.java
src/com/android/settings/overlay/SurveyFeatureProvider.java