Kaynağa Gözat

[마이][Bug] 데이터 에러 시 크래시 수정

hyodong.min 7 yıl önce
ebeveyn
işleme
b119556fda

+ 9 - 0
app/src/main/java/kr/co/zumo/app/lifeplus/view/screen/my/bucketlist/BucketListDetailFragment.java

@@ -6,6 +6,7 @@ import android.support.annotation.NonNull;
 import android.support.annotation.Nullable;
 import android.support.v7.widget.LinearLayoutManager;
 import android.support.v7.widget.RecyclerView;
+import android.util.Log;
 import android.view.LayoutInflater;
 import android.view.View;
 import android.view.ViewGroup;
@@ -94,6 +95,10 @@ public class BucketListDetailFragment extends FragmentBase<BucketListDetailPrese
 
   @Override
   public void drawTag(List<TagBean> beans) {
+    if (null == beans) {
+      Log.e("APP#  BucketListDetailFragment | drawTag", "| " + "beans is null");
+      return;
+    }
 
     textTagTitle = findViewById(R.id.text_title);
     layoutTagContents = findViewById(R.id.layout_contents);
@@ -124,6 +129,10 @@ public class BucketListDetailFragment extends FragmentBase<BucketListDetailPrese
 
   @Override
   public void drawList(List<LifeplusContentsBean> contentsBeans) {
+    if (null == contentsBeans) {
+      Log.e("APP#  BucketListDetailFragment | drawList", "| " + "contentsBeans is null");
+      return;
+    }
     if (null == recyclerViewBucketListDetail) {
       // init
       recyclerViewBucketListDetail = findViewById(R.id.recycler_view_bucket_list_detail);