我的项目是用ViewPager+Fragment来加载数据
此图为知乎日报的Json加载RecyclerView基于BaseFragment
剪头都是我所认为的数据传递的过程(不知道有没有错误storiesList = JsonHelper.parseJsonToList(HttpUtil.getLastNewsList()); 这句话 在图四图五中给出了方法
这样写的代码就会出现这种错误了
有没有大神 帮忙 看看 是哪错了 或者哪里写的不合理
闭关修行中......
The error is reported because the newser you passed in is null. You can debug and see if the json is parsed into the corresponding structure. It should be easy to troubleshoot.
The first time I got the list, it was not passed to the adapter? I didn’t see setdata in the task
The error is reported because the newser you passed in is null. You can debug and see if the json is parsed into the corresponding structure. It should be easy to troubleshoot.
The first time I got the list, it was not passed to the adapter? I didn’t see setdata in the task