Change theme
Help
Press space for more information.
Show links for this issue (Shortcut: i, l)
Copy issue ID
Previous Issue (Shortcut: k)
Next Issue (Shortcut: j)
Sign in to use full features.
Vote: I am impacted
Notification menu
Refresh (Shortcut: Shift+r)
Go home (Shortcut: u)
Pending code changes (auto-populated)
View issue level access limits(Press Alt + Right arrow for more information)
Unintended behavior
View staffing
Description
Version used: 1.0.0
Devices/Android versions reproduced on: Android 13
If this is a bug in the library, we would appreciate if you could attach:
- Sample project to trigger the issue.
- A screenrecord or screenshots showing the issue (if UI related).
Hi, here is log.
java.lang.NullPointerException: Attempt to invoke virtual method 'void android.graphics.drawable.Drawable.setAlpha(int)' on a null object reference
at androidx.swiperefreshlayout.widget.SwipeRefreshLayout.setColorViewAlpha(SwipeRefreshLayout.java:299)
at androidx.swiperefreshlayout.widget.SwipeRefreshLayout.reset(SwipeRefreshLayout.java:222)
at androidx.swiperefreshlayout.widget.SwipeRefreshLayout.onDetachedFromWindow(SwipeRefreshLayout.java:295)
at android.view.View.dispatchDetachedFromWindow(View.java:22538)
at android.view.ViewGroup.dispatchDetachedFromWindow(ViewGroup.java:4169)
at android.view.ViewGroup.removeAllViewsInLayout(ViewGroup.java:6018)
at android.view.ViewGroup.removeAllViews(ViewGroup.java:5964)
i'm using viewPager2 in an activity and the viewPager has fragments that have SwipeRefreshLayout. When the fragment is in OnDestroyView() i made root.removeAllViews().
Then this NullPointException is occurred. is there any issue that discuss about this??
Thanks.