mirror of
https://github.com/moparisthebest/Conversations
synced 2024-11-24 01:32:17 -05:00
possible null pointer fix
This commit is contained in:
parent
a8dd6794f3
commit
d543d377b7
@ -604,10 +604,12 @@ public class ConversationFragment extends Fragment {
|
||||
if (params[i].getEncryption() == Message.ENCRYPTION_PGP) {
|
||||
String body = params[i].getBody();
|
||||
String decrypted = null;
|
||||
if (activity==null) {
|
||||
return false;
|
||||
} else if (!activity.xmppConnectionServiceBound) {
|
||||
return false;
|
||||
}
|
||||
try {
|
||||
if (activity==null) {
|
||||
return false;
|
||||
}
|
||||
Log.d("gultsch","calling to decrypt message id #"+params[i].getUuid());
|
||||
decrypted = activity.xmppConnectionService.getPgpEngine().decrypt(body);
|
||||
} catch (UserInputRequiredException e) {
|
||||
|
Loading…
Reference in New Issue
Block a user