diff options
author | orionlee <orionlee@yahoo.com> | 2019-10-17 12:32:06 -0700 |
---|---|---|
committer | orionlee <orionlee@yahoo.com> | 2019-10-17 12:47:45 -0700 |
commit | 5eaa4dbfb172a9a8ac6f23437350d1dca64682e8 (patch) | |
tree | be14e5b303bdd2d1eafba1750c7d375003af9770 /app/src | |
parent | 2ffdc275b8dd127f15506556d1b7ba9fb9108b47 (diff) | |
download | AntennaPod-5eaa4dbfb172a9a8ac6f23437350d1dca64682e8.zip |
bugfix: Share Episode URL - handle empty link
Diffstat (limited to 'app/src')
-rw-r--r-- | app/src/main/java/de/danoeh/antennapod/activity/MediaplayerActivity.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/app/src/main/java/de/danoeh/antennapod/activity/MediaplayerActivity.java b/app/src/main/java/de/danoeh/antennapod/activity/MediaplayerActivity.java index a060e258a..6b8fd459d 100644 --- a/app/src/main/java/de/danoeh/antennapod/activity/MediaplayerActivity.java +++ b/app/src/main/java/de/danoeh/antennapod/activity/MediaplayerActivity.java @@ -64,6 +64,7 @@ import io.reactivex.Observable; import io.reactivex.android.schedulers.AndroidSchedulers; import io.reactivex.disposables.Disposable; import io.reactivex.schedulers.Schedulers; +import org.apache.commons.lang3.StringUtils; import org.greenrobot.eventbus.EventBus; import org.greenrobot.eventbus.Subscribe; import org.greenrobot.eventbus.ThreadMode; @@ -504,7 +505,7 @@ public abstract class MediaplayerActivity extends CastEnabledActivity implements private static String getWebsiteLinkWithFallback(Playable media) { if (media == null) { return null; - } else if (media.getWebsiteLink() != null) { + } else if (StringUtils.isNotBlank(media.getWebsiteLink())) { return media.getWebsiteLink(); } else if (media instanceof FeedMedia) { return FeedItemUtil.getLinkWithFallback(((FeedMedia)media).getItem()); |