Commit a393aeb3 by 霍志良

fix:问答列表页,null异常。

parent 0c34839e
......@@ -20,8 +20,8 @@ import java.util.List;
public final class DemoGlobalConfig implements IConfigModule {
String APP_DOMAIN = "https://api.github.com/";
// public static String appEnv = YDLConstants.ENV_AUTO_TEST;
public static String appEnv = YDLConstants.ENV_TEST;
// public static String appEnv = YDLConstants.ENV_PROD;
// public static String appEnv = YDLConstants.ENV_TEST;
public static String appEnv = YDLConstants.ENV_PROD;
@Override
public void injectAppLifecycle(@NotNull Context context, @NotNull List<IAppLifecycles> lifecycles) {
......
......@@ -11,7 +11,7 @@ ext {
"m-user" : "0.0.61.04",
"m-home" : "0.0.22.53",
"m-im" : "0.0.18.35",
"m-dynamic" : "0.0.7.15",
"m-dynamic" : "0.0.7.17",
"m-article" : "0.0.0.6",
"m-muse" : "0.0.28.20",
......@@ -94,7 +94,7 @@ ext {
"m-user" : "0.0.61.04",
"m-home" : "0.0.22.53",
"m-im" : "0.0.18.34",
"m-dynamic" : "0.0.7.16",
"m-dynamic" : "0.0.7.17",
"m-muse" : "0.0.20.7",
"m-tests" : "0.0.24.9",
......
......@@ -250,7 +250,9 @@ public class TrendsListAdapter extends RecyclerView.Adapter<BaseViewHolder> {
holder.setVisibility(R.id.item_trend_title_tv, View.GONE);
}
showCommentsPart(holder, trend);
if (trend.comments!=null){
showCommentsPart(holder, trend);
}
LogUtil.d("head: " + trend.avatar + " pos:" + position);
LogUtil.d("time: " + trend.timeStr + " source: " + trend.from);
return holder.setHeadImageWithUrl(R.id.item_trend_user_head_iv, trend.avatar) //头像
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment