** 核心代码:**
**从接口中获得:**
that.allDialogList = [...that.topList, ...that.dialogList];
**更新数组:**
获得索引:
that.allDialogList.splice(index, 1);
that.allDialogList.splice(that.allDialogList.length, 0, newItem);
闪退日志:
java.lang.RuntimeException: An error occurred while executing doInBackground()
at android.os.AsyncTask$4.done(AsyncTask.java:415)
at java.util.concurrent.FutureTask.finishCompletion(FutureTask.java:381)
at java.util.concurrent.FutureTask.setException(FutureTask.java:250)
at java.util.concurrent.FutureTask.run(FutureTask.java:269)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1137)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:637)
at java.lang.Thread.run(Thread.java:1012)
Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'void com.taobao.weex.ui.component.WXComponent.updateDemission(float, float, float, float, float, float)' on a null object reference
at com.taobao.weex.ui.component.binding.Statements.copyComponentTree(Unknown Source:55)
at com.taobao.weex.ui.component.binding.Statements.copyComponentTree(Unknown Source:4)
at com.taobao.weex.ui.component.list.template.WXRecyclerTemplateList.copyComponentFromSourceCell(Unknown Source:3)
at com.taobao.weex.ui.component.list.template.AsyncCellLoadTask.doInBackground(Unknown Source:43)
at com.taobao.weex.ui.component.list.template.AsyncCellLoadTask.doInBackground(Unknown Source:2)
at android.os.AsyncTask$3.call(AsyncTask.java:394)
at java.util.concurrent.FutureTask.run(FutureTask.java:264)
... 3 more