Преглед изворни кода

修复 可能存在的空指针

zengjiebin пре 7 година
родитељ
комит
4ebfe3224a
1 измењених фајлова са 2 додато и 1 уклоњено
  1. 2 1
      app/src/main/java/com/sheep/gamegroup/view/activity/ActWebX5.java

+ 2 - 1
app/src/main/java/com/sheep/gamegroup/view/activity/ActWebX5.java

@@ -294,7 +294,8 @@ public class ActWebX5 extends BaseActWeb {
                     act_web_loading_iv.startAnimation(animation);
                 }
                 ViewUtil.setVisibility(act_web_loading_pb, newProgress != 100);
-                act_web_loading_pb.setProgress(newProgress);
+                if(act_web_loading_pb != null)
+                    act_web_loading_pb.setProgress(newProgress);
                 super.onProgressChanged(view, newProgress);
             }
         });