Fix MediaPreview NPE.

This commit is contained in:
Greyson Parrelli 2018-11-27 09:32:56 -08:00
parent 193d82789f
commit 8a1a47e773

View File

@ -241,7 +241,7 @@ public class MediaPreviewActivity extends PassphraseRequiredActionBarActivity im
private void initializeObservers() {
viewModel.getPreviewData().observe(this, previewData -> {
if (previewData == null) {
if (previewData == null || mediaPager == null || mediaPager.getAdapter() == null) {
return;
}