aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/java
diff options
context:
space:
mode:
authorAlex Ning <chineseperson5@gmail.com>2019-09-07 14:26:29 +0000
committerAlex Ning <chineseperson5@gmail.com>2019-09-07 14:26:29 +0000
commit4e14b13fba9409c022d46657fad67b55532ffcf8 (patch)
treeed89a18d724012fd78dca7452ca959e49cfa1fc3 /app/src/main/java
parentd60c5ac5dafb5d8eb010cf1d177cedb0557abc20 (diff)
downloadinfinity-for-reddit-4e14b13fba9409c022d46657fad67b55532ffcf8.tar
infinity-for-reddit-4e14b13fba9409c022d46657fad67b55532ffcf8.tar.gz
infinity-for-reddit-4e14b13fba9409c022d46657fad67b55532ffcf8.tar.bz2
infinity-for-reddit-4e14b13fba9409c022d46657fad67b55532ffcf8.tar.lz
infinity-for-reddit-4e14b13fba9409c022d46657fad67b55532ffcf8.tar.xz
infinity-for-reddit-4e14b13fba9409c022d46657fad67b55532ffcf8.tar.zst
infinity-for-reddit-4e14b13fba9409c022d46657fad67b55532ffcf8.zip
Fixed force stop when opening link type post. Update libraries.
Diffstat (limited to '')
-rw-r--r--app/src/main/java/ml/docilealligator/infinityforreddit/CommentAndPostRecyclerViewAdapter.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/src/main/java/ml/docilealligator/infinityforreddit/CommentAndPostRecyclerViewAdapter.java b/app/src/main/java/ml/docilealligator/infinityforreddit/CommentAndPostRecyclerViewAdapter.java
index b1f756e8..6ad3638f 100644
--- a/app/src/main/java/ml/docilealligator/infinityforreddit/CommentAndPostRecyclerViewAdapter.java
+++ b/app/src/main/java/ml/docilealligator/infinityforreddit/CommentAndPostRecyclerViewAdapter.java
@@ -470,7 +470,7 @@ class CommentAndPostRecyclerViewAdapter extends RecyclerView.Adapter<RecyclerVie
String noPreviewLinkDomain = Uri.parse(mPost.getUrl()).getHost();
((PostDetailViewHolder) holder).linkTextView.setText(noPreviewLinkDomain);
- if(!mPost.getSelfText().equals("")) {
+ if(mPost.getSelfText() != null && !mPost.getSelfText().equals("")) {
((PostDetailViewHolder) holder).mContentMarkdownView.setVisibility(View.VISIBLE);
mMarkwon.setMarkdown(((PostDetailViewHolder) holder).mContentMarkdownView, mPost.getSelfText());
}