mirror of
https://github.com/KokaKiwi/BarInsta
synced 2024-11-22 06:37:30 +00:00
Some null checks
This commit is contained in:
parent
00945d79e7
commit
6ae5d8bd59
@ -43,7 +43,9 @@ public class DirectItemLinkViewHolder extends DirectItemViewHolder {
|
|||||||
@Override
|
@Override
|
||||||
public void bindItem(final DirectItem item, final MessageDirection messageDirection) {
|
public void bindItem(final DirectItem item, final MessageDirection messageDirection) {
|
||||||
final DirectItemLink link = item.getLink();
|
final DirectItemLink link = item.getLink();
|
||||||
|
if (link == null) return;
|
||||||
final DirectItemLinkContext linkContext = link.getLinkContext();
|
final DirectItemLinkContext linkContext = link.getLinkContext();
|
||||||
|
if (linkContext == null) return;
|
||||||
final String linkImageUrl = linkContext.getLinkImageUrl();
|
final String linkImageUrl = linkContext.getLinkImageUrl();
|
||||||
if (TextUtils.isEmpty(linkImageUrl)) {
|
if (TextUtils.isEmpty(linkImageUrl)) {
|
||||||
binding.preview.setVisibility(View.GONE);
|
binding.preview.setVisibility(View.GONE);
|
||||||
|
Loading…
Reference in New Issue
Block a user