mirror of
https://github.com/AntennaPod/AntennaPod.git
synced 2025-02-02 11:46:55 +01:00
Fixed NullPointerException in FeedMedia
This commit is contained in:
parent
74294bad55
commit
af4929728f
@ -401,7 +401,9 @@ public class FeedMedia extends FeedFile implements Playable {
|
||||
@Override
|
||||
public String getImageLoaderCacheKey() {
|
||||
String out;
|
||||
if (item.hasItemImageDownloaded()) {
|
||||
if (item == null) {
|
||||
return null;
|
||||
} else if (item.hasItemImageDownloaded()) {
|
||||
out = item.getImageLoaderCacheKey();
|
||||
} else {
|
||||
out = new Playable.DefaultPlayableImageLoader(this)
|
||||
|
@ -126,6 +126,7 @@ public class PlaybackServiceMediaPlayer {
|
||||
try {
|
||||
playMediaObject(playable, false, stream, startWhenPrepared, prepareImmediately);
|
||||
} catch (RuntimeException e) {
|
||||
e.printStackTrace();
|
||||
throw e;
|
||||
} finally {
|
||||
playerLock.unlock();
|
||||
|
Loading…
x
Reference in New Issue
Block a user