This only happens in new device with broken power_profile.xml, in which it doesn't have screen power model. This CL catches the null pointer crash and log it. Change-Id: Iac23e3a8fc51385bdb22979c4b59000319f6fd49 Fixes: 74617269 Test: RunSettingsRoboTests
Running Settings Robolectric tests
The full suite
$ croot
$ make RunSettingsRoboTests
Running a single test class
$ croot
$ make RunSettingsRoboTests ROBOTEST_FILTER=<ClassName>
For example:
make RunSettingsRoboTests ROBOTEST_FILTER=CodeInspectionTest
You can also use partial class name in ROBOTEST_FILTER. If the partial class name matches multiple file names, all of them will be executed.