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

Crash when using card layout #964

Closed
lensaffair opened this issue May 27, 2021 · 2 comments
Closed

Crash when using card layout #964

lensaffair opened this issue May 27, 2021 · 2 comments
Labels

Comments

@lensaffair
Copy link

Since the latest update, the app crashes on startup if card layout is enabled.
I resetted the app via 'delete data' to reconfigure. Everything worked fine as long as I did not choose card layout once more.

Stacktrace

java.lang.NullPointerException: Attempt to read from field 'android.widget.TextView de.luhmer.owncloudnewsreader.databinding.SubscriptionDetailListItemCardViewBinding.body' on a null object reference
	at de.luhmer.owncloudnewsreader.adapter.RssItemCardViewHolder.getTextViewBody(SourceFile:1)
	at de.luhmer.owncloudnewsreader.adapter.RssItemViewHolder.<init>(SourceFile:12)
	at de.luhmer.owncloudnewsreader.adapter.RssItemCardViewHolder.<init>(SourceFile:1)
	at de.luhmer.owncloudnewsreader.adapter.NewsListRecyclerAdapter.onCreateViewHolder(SourceFile:8)
	at androidx.recyclerview.widget.RecyclerView$Adapter.createViewHolder(SourceFile:2)
	at androidx.recyclerview.widget.RecyclerView$Recycler.tryGetViewHolderForPositionByDeadline(SourceFile:34)
	at androidx.recyclerview.widget.RecyclerView$Recycler.getViewForPosition(SourceFile:2)
	at androidx.recyclerview.widget.RecyclerView$Recycler.getViewForPosition(SourceFile:1)
	at androidx.recyclerview.widget.LinearLayoutManager$LayoutState.next(SourceFile:3)
	at androidx.recyclerview.widget.LinearLayoutManager.layoutChunk(SourceFile:1)
	at androidx.recyclerview.widget.LinearLayoutManager.fill(SourceFile:9)
	at androidx.recyclerview.widget.LinearLayoutManager.onLayoutChildren(SourceFile:64)
	at androidx.recyclerview.widget.RecyclerView.dispatchLayoutStep2(SourceFile:8)
	at androidx.recyclerview.widget.RecyclerView.dispatchLayout(SourceFile:9)
	at androidx.recyclerview.widget.RecyclerView.onLayout(SourceFile:2)
	at android.view.View.layout(View.java:22088)
	at android.view.ViewGroup.layout(ViewGroup.java:6325)
	at androidx.swiperefreshlayout.widget.SwipeRefreshLayout.onLayout(SourceFile:11)
	at android.view.View.layout(View.java:22088)
	at android.view.ViewGroup.layout(ViewGroup.java:6325)
	at android.widget.FrameLayout.layoutChildren(FrameLayout.java:332)
	at android.widget.FrameLayout.onLayout(FrameLayout.java:270)
	at android.view.View.layout(View.java:22088)
	at android.view.ViewGroup.layout(ViewGroup.java:6325)
	at androidx.coordinatorlayout.widget.CoordinatorLayout.layoutChild(SourceFile:18)
	at androidx.coordinatorlayout.widget.CoordinatorLayout.onLayoutChild(SourceFile:7)
	at androidx.coordinatorlayout.widget.CoordinatorLayout.onLayout(SourceFile:8)
	at android.view.View.layout(View.java:22088)
	at android.view.ViewGroup.layout(ViewGroup.java:6325)
	at androidx.drawerlayout.widget.DrawerLayout.onLayout(SourceFile:10)
	at android.view.View.layout(View.java:22088)
	at android.view.ViewGroup.layout(ViewGroup.java:6325)
	at com.sothree.slidinguppanel.SlidingUpPanelLayout.onLayout(SourceFile:22)
	at android.view.View.layout(View.java:22088)
	at android.view.ViewGroup.layout(ViewGroup.java:6325)
	at android.widget.FrameLayout.layoutChildren(FrameLayout.java:332)
	at android.widget.FrameLayout.onLayout(FrameLayout.java:270)
	at android.view.View.layout(View.java:22088)
	at android.view.ViewGroup.layout(ViewGroup.java:6325)
	at android.widget.LinearLayout.setChildFrame(LinearLayout.java:1829)
	at android.widget.LinearLayout.layoutVertical(LinearLayout.java:1673)
	at android.widget.LinearLayout.onLayout(LinearLayout.java:1582)
	at android.view.View.layout(View.java:22088)
	at android.view.ViewGroup.layout(ViewGroup.java:6325)
	at android.widget.FrameLayout.layoutChildren(FrameLayout.java:332)
	at android.widget.FrameLayout.onLayout(FrameLayout.java:270)
	at android.view.View.layout(View.java:22088)
	at android.view.ViewGroup.layout(ViewGroup.java:6325)
	at android.widget.LinearLayout.setChildFrame(LinearLayout.java:1829)
	at android.widget.LinearLayout.layoutVertical(LinearLayout.java:1673)
	at android.widget.LinearLayout.onLayout(LinearLayout.java:1582)
	at android.view.View.layout(View.java:22088)
	at android.view.ViewGroup.layout(ViewGroup.java:6325)
	at android.widget.FrameLayout.layoutChildren(FrameLayout.java:332)
	at android.widget.FrameLayout.onLayout(FrameLayout.java:270)
	at com.android.internal.policy.DecorView.onLayout(DecorView.java:812)
	at android.view.View.layout(View.java:22088)
	at android.view.ViewGroup.layout(ViewGroup.java:6325)
	at android.view.ViewRootImpl.performLayout(ViewRootImpl.java:3192)
	at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:2702)
	at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1820)
	at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:7782)
	at android.view.Choreographer$CallbackRecord.run(Choreographer.java:1031)
	at android.view.Choreographer.doCallbacks(Choreographer.java:854)
	at android.view.Choreographer.doFrame(Choreographer.java:789)
	at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:1016)
	at android.os.Handler.handleCallback(Handler.java:883)
	at android.os.Handler.dispatchMessage(Handler.java:100)
	at android.os.Looper.loop(Looper.java:224)
	at android.app.ActivityThread.main(ActivityThread.java:7562)
	at java.lang.reflect.Method.invoke(Native Method)
	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:539)
	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:950)


App Version: 0.9.9.60
App Version Code: 163


SSO enabled: true


OS Version: 4.9.186-perf-ge4407a8(V12.0.5.0.QFCEUXM)
OS API Level: 29
Device: pyxis
Model (and Product): Mi 9 Lite (pyxis_eea)


sp_max_cache_size=500
sp_swipe_left_action=2
sw_use_single_sign_on=true
cb_ShowOnlyUnread=false
cb_openInBrowserDirectly=false
lv_cacheImagesOffline=0
cb_ShowFastActions=true
cb_AutoSyncOnStart=true
sp_news_detail_actionbar_icons=[]
sp_swipe_right_action=1
cb_NavigateWithVolumeButtons=false
sp_font_size=1.0
NewsWebVersionNumber=15.4.4
sp_search_in=0
cb_showNotificationNewArticles=true
sp_sort_order=1
cb_MarkAsReadWhileScrolling=false
sp_feed_list_layout=6
cb_oled_mode=false
sp_display_browser=0
sp_app_theme=0

@teemue
Copy link

teemue commented Jun 1, 2021

I can confirm this. All other layouts work.

@David-Development
Copy link
Member

Thank you for the detailed report! I'll create a new release today to fix this issue.

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

No branches or pull requests

4 participants