mirror of
https://github.com/oxen-io/session-android.git
synced 2024-11-24 02:25:19 +00:00
Fix MediaPreview NPE.
This commit is contained in:
parent
193d82789f
commit
8a1a47e773
@ -241,7 +241,7 @@ public class MediaPreviewActivity extends PassphraseRequiredActionBarActivity im
|
|||||||
|
|
||||||
private void initializeObservers() {
|
private void initializeObservers() {
|
||||||
viewModel.getPreviewData().observe(this, previewData -> {
|
viewModel.getPreviewData().observe(this, previewData -> {
|
||||||
if (previewData == null) {
|
if (previewData == null || mediaPager == null || mediaPager.getAdapter() == null) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user