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…
Reference in New Issue