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

MaterialAboutActionItem receiving null context in some devices #110

Open
jordyamc opened this issue Aug 13, 2020 · 0 comments
Open

MaterialAboutActionItem receiving null context in some devices #110

jordyamc opened this issue Aug 13, 2020 · 0 comments

Comments

@jordyamc
Copy link

Fatal Exception: java.lang.NullPointerException: Attempt to invoke virtual method 'android.content.res.Resources$Theme android.content.Context.getTheme()' on a null object reference
       at com.danielstone.materialaboutlibrary.items.MaterialAboutActionItem.setupItem(MaterialAboutActionItem.java:153)
       at com.danielstone.materialaboutlibrary.util.DefaultViewTypeManager.setupItem(DefaultViewTypeManager.java:53)
       at com.danielstone.materialaboutlibrary.adapters.MaterialAboutItemAdapter.onBindViewHolder(MaterialAboutItemAdapter.java:61)
       at com.danielstone.materialaboutlibrary.adapters.MaterialAboutItemAdapter.onBindViewHolder(MaterialAboutItemAdapter.java:25)
       at androidx.recyclerview.widget.RecyclerView$Adapter.onBindViewHolder(RecyclerView.java:7065)
       at androidx.recyclerview.widget.RecyclerView$Adapter.bindViewHolder(RecyclerView.java:7107)
       at androidx.recyclerview.widget.RecyclerView$Recycler.tryBindViewHolderByDeadline(RecyclerView.java:6012)
       at androidx.recyclerview.widget.RecyclerView$Recycler.tryGetViewHolderForPositionByDeadline(RecyclerView.java:6279)
       at androidx.recyclerview.widget.RecyclerView$Recycler.getViewForPosition(RecyclerView.java:6118)
       at androidx.recyclerview.widget.RecyclerView$Recycler.getViewForPosition(RecyclerView.java:6114)
       at androidx.recyclerview.widget.LinearLayoutManager$LayoutState.next(LinearLayoutManager.java:2303)
       at androidx.recyclerview.widget.LinearLayoutManager.layoutChunk(LinearLayoutManager.java:1627)
       at androidx.recyclerview.widget.LinearLayoutManager.fill(LinearLayoutManager.java:1587)
       at androidx.recyclerview.widget.LinearLayoutManager.onLayoutChildren(LinearLayoutManager.java:665)
       at androidx.recyclerview.widget.RecyclerView.dispatchLayoutStep2(RecyclerView.java:4134)
       at androidx.recyclerview.widget.RecyclerView.onMeasure(RecyclerView.java:3540)
       at android.view.View.measure(View.java:24742)
       at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:6903)
       at android.widget.LinearLayout.measureChildBeforeLayout(LinearLayout.java:1562)
       at android.widget.LinearLayout.measureVertical(LinearLayout.java:849)
       at android.widget.LinearLayout.onMeasure(LinearLayout.java:728)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant