From ce7981534699aa7fef1a321a76b67be73c45210b Mon Sep 17 00:00:00 2001 From: Docile-Alligator <25734209+Docile-Alligator@users.noreply.github.com> Date: Sat, 2 Mar 2024 12:51:28 -0500 Subject: Fix NullPointerException in when loading fallback video. --- .../adapters/HistoryPostRecyclerViewAdapter.java | 43 ++++++++++++---------- .../adapters/PostDetailRecyclerViewAdapter.java | 14 ++++--- .../adapters/PostRecyclerViewAdapter.java | 42 ++++++++++++--------- .../infinityforreddit/post/Post.java | 4 +- 4 files changed, 59 insertions(+), 44 deletions(-) (limited to 'app/src') diff --git a/app/src/main/java/ml/docilealligator/infinityforreddit/adapters/HistoryPostRecyclerViewAdapter.java b/app/src/main/java/ml/docilealligator/infinityforreddit/adapters/HistoryPostRecyclerViewAdapter.java index 8c538e47..863d4484 100644 --- a/app/src/main/java/ml/docilealligator/infinityforreddit/adapters/HistoryPostRecyclerViewAdapter.java +++ b/app/src/main/java/ml/docilealligator/infinityforreddit/adapters/HistoryPostRecyclerViewAdapter.java @@ -25,7 +25,6 @@ import android.widget.Toast; import androidx.annotation.NonNull; import androidx.annotation.Nullable; -import androidx.appcompat.content.res.AppCompatResources; import androidx.constraintlayout.widget.Barrier; import androidx.constraintlayout.widget.ConstraintLayout; import androidx.constraintlayout.widget.ConstraintSet; @@ -3323,12 +3322,14 @@ public class HistoryPostRecyclerViewAdapter extends PagingDataAdapter