Commit e78170db authored by shla's avatar shla Committed by Anita Lin
Browse files

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)
parent 63a5ab18
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment