fixed null pointer with missing status msg
This commit is contained in:
parent
f99887d7ca
commit
291dc4c36c
|
@ -278,9 +278,14 @@ public class XmppConnectionService extends Service {
|
||||||
Element x = packet.findChild("x","jabber:x:signed");
|
Element x = packet.findChild("x","jabber:x:signed");
|
||||||
if (x != null) {
|
if (x != null) {
|
||||||
try {
|
try {
|
||||||
contact.setPgpKeyId(pgp.fetchKeyId(
|
Element status = packet.findChild("status");
|
||||||
packet.findChild("status")
|
String msg;
|
||||||
.getContent(), x
|
if (status!=null) {
|
||||||
|
msg = status.getContent();
|
||||||
|
} else {
|
||||||
|
msg = "";
|
||||||
|
}
|
||||||
|
contact.setPgpKeyId(pgp.fetchKeyId(msg, x
|
||||||
.getContent()));
|
.getContent()));
|
||||||
} catch (OpenPgpException e) {
|
} catch (OpenPgpException e) {
|
||||||
Log.d(LOGTAG, "faulty pgp. just ignore");
|
Log.d(LOGTAG, "faulty pgp. just ignore");
|
||||||
|
|
Loading…
Reference in New Issue