fix crash issue when run cts case camera its test
When run cts verifier case "camera its test", system will crash as below log. To fix this issue, onCreate() should call "super.onCreate()" earlier to avoid TestListAdapter to be NULL. ------------------------------ E AndroidRuntime: Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'int com.android.cts.verifier.TestListAdapter.getCount()' on a null object reference E AndroidRuntime: at com.android.cts.verifier.PassFailButtons$TestListActivity.getHistoryCollection(PassFailButtons.java:294) E AndroidRuntime: at com.android.cts.verifier.PassFailButtons$TestListActivity.setTestResultAndFinish(PassFailButtons.java:282) E AndroidRuntime: at com.android.cts.verifier.camera.its.ItsTestActivity.onCreate(ItsTestActivity.java:357) Bug: 147079033, 150153190 Change-Id: I5212725300091940228ef8e7009a7c353bf87ea6 (cherry picked from commit 5fe0fa9d4370941d12345a23c7ca05379324ec2f)
Loading
Please sign in to comment