If cursor.moveToFirst() returns false, the cursor is empty which cause crash. Check whether the curse is empty to fix. Fix: 288716180 Test: manual - on ApnEditor page Test: m RunSettingsRoboTests Change-Id: If850cd3feca3d3d520a653c2490d1049a8a87fdc
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.