Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

引入后会造成跟 SwipeRefreshLayout 冲突引起闪退报错空指针异常 #541

Open
guojiabin opened this issue Dec 19, 2020 · 2 comments · May be fixed by #672
Open

引入后会造成跟 SwipeRefreshLayout 冲突引起闪退报错空指针异常 #541

guojiabin opened this issue Dec 19, 2020 · 2 comments · May be fixed by #672

Comments

@guojiabin
Copy link

NullPointerException
Attempt to invoke virtual method 'void android.graphics.drawable.Drawable.setAlpha(int)' on a null object reference
androidx.swiperefreshlayout.widget.SwipeRefreshLayout in setColorViewAlpha at line 234
androidx.swiperefreshlayout.widget.SwipeRefreshLayout in reset at line 209
androidx.swiperefreshlayout.widget.SwipeRefreshLayout in onDetachedFromWindow at line 230
android.view.View in dispatchDetachedFromWindow at line 13560
android.view.ViewGroup in dispatchDetachedFromWindow at line 2837
android.view.ViewGroup in dispatchDetachedFromWindow at line 2834
2
android.view.ViewGroup in removeViewInternal at line 4220
android.view.ViewGroup in removeViewInternal at line 4193
android.view.ViewGroup in removeView at line 4124
androidx.fragment.app.FragmentManagerImpl in moveToState at line 973
androidx.fragment.app.FragmentManagerImpl in moveFragmentToExpectedState at line 1238
androidx.fragment.app.FragmentManagerImpl in moveToState at line 1303
androidx.fragment.app.FragmentManagerImpl in dispatchStateChange at line 2659
androidx.fragment.app.FragmentManagerImpl in dispatchDestroy at line 2644
androidx.fragment.app.FragmentController in dispatchDestroy at line 329
androidx.fragment.app.FragmentActivity in onDestroy at line 366
androidx.appcompat.app.AppCompatActivity in onDestroy at line 242
com.ph.arch.lib.base.activity.BaseActivity in onDestroy at line 121
android.app.Activity in performDestroy at line 6169
android.app.Instrumentation in callActivityOnDestroy at line 1141
android.app.ActivityThread in performDestroyActivity at line 3698
android.app.ActivityThread in handleDestroyActivity at line 3729
android.app.ActivityThread in access$1400 at line 153
android.app.ActivityThread$H in handleMessage at line 1359
android.os.Handler in dispatchMessage at line 102
android.os.Looper in loop at line 135
android.app.ActivityThread in main at line 5293
java.lang.reflect.Method in invoke
java.lang.reflect.Method in invoke at line 372
com.android.internal.os.ZygoteInit$MethodAndArgsCaller in run at line 903
com.android.internal.os.ZygoteInit in main at line 698

@ibaozi-cn
Copy link

建议先关闭activityLeakFixer

@lixiangkai1987
Copy link

这个修复还没发版本么?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants