소스 검색

修复 可能存在的空指针

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);
             }
         });