1
0
Fork 1

avoid npe when accessing the pgp connection service

This commit is contained in:
Daniel Gultsch 2016-02-02 11:21:29 +01:00
parent d9bddb3f3a
commit 9434d58502

View file

@ -334,7 +334,7 @@ public class XmppConnectionService extends Service implements OnPhoneContactsLoa
}
public PgpEngine getPgpEngine() {
if (pgpServiceConnection.isBound()) {
if (pgpServiceConnection != null && pgpServiceConnection.isBound()) {
if (this.mPgpEngine == null) {
this.mPgpEngine = new PgpEngine(new OpenPgpApi(
getApplicationContext(),