PopupWindow写在fragment中的时候写错了父act
2018-10-29 本文已影响10人
在下陈小村
Thread ID: 546 Thread Name: pool-2-thread-2 Time: 2018-10-29 09:01:10:02 FromClass: CrashHandler > ↓↓↓↓exception↓↓↓↓
java.lang.NullPointerException: Attempt to invoke virtual method 'android.os.IBinder android.view.View.getWindowToken()' on a null object reference
at android.widget.PopupWindow.showAtLocation(PopupWindow.java:908)
at com.ganjie.app.home.fragment.HomeGoodsFragment1.onClick(BaseViewHolder.java:390)
at android.view.View.performClick(View.java:4874)
at android.view.ViewMethodAndArgsCaller.run(ZygoteInit.java:1113)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:879)