fixed rare npe in verify otr fingerprint dialog
This commit is contained in:
parent
121fb58d5e
commit
c86f96e856
|
@ -805,11 +805,13 @@ public class ConversationFragment extends Fragment {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onClick(View v) {
|
public void onClick(View v) {
|
||||||
|
if (conversation.getOtrFingerprint() != null) {
|
||||||
AlertDialog dialog = UIHelper.getVerifyFingerprintDialog(
|
AlertDialog dialog = UIHelper.getVerifyFingerprintDialog(
|
||||||
(ConversationActivity) getActivity(), conversation,
|
(ConversationActivity) getActivity(), conversation,
|
||||||
fingerprintWarning);
|
fingerprintWarning);
|
||||||
dialog.show();
|
dialog.show();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
fingerprintWarning.setVisibility(View.GONE);
|
fingerprintWarning.setVisibility(View.GONE);
|
||||||
|
|
Loading…
Reference in New Issue