Something went wrong while setting issue due date.
Crash when disabling repository after downloading (but before installing) app from repo
This was reported via ACRA, and is reproducible.
- F-Droid version (in the About screen): 0.103-alpha3
What did you do? (clear steps if possible)
- Start the download of an app.
- Wait until the download is complete.
- Navigate to the Updates tab and notice app sitting at top with an "Update" button ready to press.
- Don't press that.
- Go to settings -> Manage repos and disable all your repositories.
- Go back to the updates screen
What did you expect to see?
Default empty list message (like on a fresh install before the repos are updated).
What did you see instead?
Crash, with the following logcat:
E/ACRA (12443): java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String org.fdroid.fdroid.data.Apk.getUrl()' on a null object reference
E/ACRA (12443): at org.fdroid.fdroid.views.apps.AppListItemController.bindModel(AppListItemController.java:147)
E/ACRA (12443): at org.fdroid.fdroid.views.updates.items.AppStatus$Delegate.onBindViewHolder(AppStatus.java:53)
E/ACRA (12443): at org.fdroid.fdroid.views.updates.items.AppStatus$Delegate.onBindViewHolder(AppStatus.java:31)
E/ACRA (12443): at com.hannesdorfmann.adapterdelegates3.AdapterDelegatesManager.onBindViewHolder(AdapterDelegatesManager.java:281)
E/ACRA (12443): at com.hannesdorfmann.adapterdelegates3.AdapterDelegatesManager.onBindViewHolder(AdapterDelegatesManager.java:297)
E/ACRA (12443): at org.fdroid.fdroid.views.updates.UpdatesAdapter.onBindViewHolder(UpdatesAdapter.java:189)
E/ACRA (12443): at android.support.v7.widget.RecyclerView$Adapter.onBindViewHolder(RecyclerView.java:6310)
E/ACRA (12443): at android.support.v7.widget.RecyclerView$Adapter.bindViewHolder(RecyclerView.java:6343)
E/ACRA (12443): at android.support.v7.widget.RecyclerView$Recycler.tryBindViewHolderByDeadline(RecyclerView.java:5289)
E/ACRA (12443): at android.support.v7.widget.RecyclerView$Recycler.tryGetViewHolderForPositionByDeadline(RecyclerView.java:5552)
E/ACRA (12443): at android.support.v7.widget.RecyclerView$Recycler.getViewForPosition(RecyclerView.java:5394)
E/ACRA (12443): at android.support.v7.widget.RecyclerView$Recycler.getViewForPosition(RecyclerView.java:5390)
E/ACRA (12443): at android.support.v7.widget.LinearLayoutManager$LayoutState.next(LinearLayoutManager.java:2149)
E/ACRA (12443): at android.support.v7.widget.LinearLayoutManager.layoutChunk(LinearLayoutManager.java:1533)
E/ACRA (12443): at android.support.v7.widget.LinearLayoutManager.fill(LinearLayoutManager.java:1496)
E/ACRA (12443): at android.support.v7.widget.LinearLayoutManager.onLayoutChildren(LinearLayoutManager.java:593)
E/ACRA (12443): at android.support.v7.widget.RecyclerView.dispatchLayoutStep2(RecyclerView.java:3537)
E/ACRA (12443): at android.support.v7.widget.RecyclerView.dispatchLayout(RecyclerView.java:3266)
E/ACRA (12443): at android.support.v7.widget.RecyclerView.onLayout(RecyclerView.java:3798)
E/ACRA (12443): at android.view.View.layout(View.java:15686)
E/ACRA (12443): at android.view.ViewGroup.layout(ViewGroup.java:5039)
E/ACRA (12443): at android.widget.FrameLayout.layoutChildren(FrameLayout.java:579)
E/ACRA (12443): at android.widget.FrameLayout.onLayout(FrameLayout.java:514)
E/ACRA (12443): at android.view.View.layout(View.java:15686)
E/ACRA (12443): at android.view.ViewGroup.layout(ViewGroup.java:5039)
E/ACRA (12443): at android.widget.FrameLayout.layoutChildren(FrameLayout.java:579)
E/ACRA (12443): at android.widget.FrameLayout.onLayout(FrameLayout.java:514)
E/ACRA (12443): at android.view.View.layout(View.java:15686)
E/ACRA (12443): at android.view.ViewGroup.layout(ViewGroup.java:5039)
E/ACRA (12443): at android.support.v7.widget.RecyclerView$LayoutManager.layoutDecoratedWithMargins(RecyclerView.java:8690)
E/ACRA (12443): at android.support.v7.widget.LinearLayoutManager.layoutChunk(LinearLayoutManager.java:1591)
E/ACRA (12443): at android.support.v7.widget.LinearLayoutManager.fill(LinearLayoutManager.java:1496)
E/ACRA (12443): at android.support.v7.widget.LinearLayoutManager.onLayoutChildren(LinearLayoutManager.java:593)
E/ACRA (12443): at android.support.v7.widget.RecyclerView.dispatchLayoutStep2(RecyclerView.java:3537)
E/ACRA (12443): at android.support.v7.widget.RecyclerView.dispatchLayout(RecyclerView.java:3266)
E/ACRA (12443): at android.support.v7.widget.RecyclerView.onLayout(RecyclerView.java:3798)
E/ACRA (12443): at android.view.View.layout(View.java:15686)
E/ACRA (12443): at android.view.ViewGroup.layout(ViewGroup.java:5039)
E/ACRA (12443): at android.widget.RelativeLayout.onLayout(RelativeLayout.java:1077)
E/ACRA (12443): at android.view.View.layout(View.java:15686)
E/ACRA (12443): at android.view.ViewGroup.layout(ViewGroup.java:5039)
E/ACRA (12443): at android.widget.FrameLayout.layoutChildren(FrameLayout.java:579)
E/ACRA (12443): at android.widget.FrameLayout.onLayout(FrameLayout.java:514)
E/ACRA (12443): at android.view.View.layout(View.java:15686)
E/ACRA (12443): at android.view.ViewGroup.layout(ViewGroup.java:5039)
E/ACRA (12443): at android.widget.LinearLayout.setChildFrame(LinearLayout.java:1703)
E/ACRA (12443): at android.widget.LinearLayout.layoutVertical(LinearLayout.java:1557)
E/ACRA (12443): at android.widget.LinearLayout.onLayout(LinearLayout.java:1466)
E/ACRA (12443): at android.view.View.layout(View.java:15686)
E/ACRA (12443): at android.view.ViewGroup.layout(ViewGroup.java:5039)
E/ACRA (12443): at android.widget.FrameLayout.layoutCh