在android开发中使用ImageView实现视频显示时出现如下报错:

java.lang.NullPointerException: Attempt to read from field 'android.widget.ImageView com.example.smartdoor.ui.SmartDoorActivity.video' on a null object reference
       at com.example.smartdoor.ui.SmartDoorActivity.access$500(SmartDoorActivity.java:49)
       at com.example.smartdoor.ui.SmartDoorActivity$6.handleMessage(SmartDoorActivity.java:353)
       at android.os.Handler.dispatchMessage(Handler.java:107)
       at android.os.Looper.loop(Looper.java:213)
       at android.app.ActivityThread.main(ActivityThread.java:8169)
       at java.lang.reflect.Method.invoke(Native Method)
       at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:513)
       at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1101)


  • 就几件    2020-05-15 10:09:13
  • 阅读 3513    收藏 0    回答 1
  • 邀请
  • 收藏
  • 分享
发送
登录 后发表评论
  • 51testing软件测试圈微信