fixed rare npe in verify otr fingerprint dialog

This commit is contained in:
iNPUTmice 2014-06-30 20:29:06 +02:00
parent 121fb58d5e
commit c86f96e856

View file

@ -805,10 +805,12 @@ public class ConversationFragment extends Fragment {
@Override
public void onClick(View v) {
AlertDialog dialog = UIHelper.getVerifyFingerprintDialog(
(ConversationActivity) getActivity(), conversation,
fingerprintWarning);
dialog.show();
if (conversation.getOtrFingerprint() != null) {
AlertDialog dialog = UIHelper.getVerifyFingerprintDialog(
(ConversationActivity) getActivity(), conversation,
fingerprintWarning);
dialog.show();
}
}
});
} else {