fixed NPE

This commit is contained in:
Mariotaku Lee 2016-07-18 23:42:10 +08:00
parent 02787f7228
commit 0195a69568
2 changed files with 2 additions and 2 deletions

View File

@ -464,7 +464,7 @@ public class BackgroundOperationService extends IntentService implements Constan
try {
body = UpdateStatusTask.Companion.getBodyFromMedia(getContentResolver(), mediaUri,
new MessageMediaUploadListener(this, mNotificationManager,
builder, text));
builder, text), null);
final MediaUploadResponse uploadResp = uploadMedia(twitterUpload, body);
final DirectMessage response = twitter.sendDirectMessage(recipientId,
text, uploadResp.getId());

View File

@ -55,7 +55,7 @@ class GifPageFragment : CacheDownloadMediaViewerFragment() {
}
override fun recycleMedia() {
gifView.setInputSource(null)
gifView?.setInputSource(null)
}
private val media: ParcelableMedia