mirror of
https://github.com/oxen-io/session-android.git
synced 2024-11-27 20:15:21 +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