From ac6522cb9405d5d12a93fe955d2fc24351380c11 Mon Sep 17 00:00:00 2001 From: knuthy Date: Sat, 20 Sep 2014 18:43:22 +0200 Subject: [PATCH] a nasty bug! --- app/src/main/java/com/zeapo/pwdstore/crypto/PgpHandler.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/com/zeapo/pwdstore/crypto/PgpHandler.java b/app/src/main/java/com/zeapo/pwdstore/crypto/PgpHandler.java index 4dd4e7e6..f80893a4 100644 --- a/app/src/main/java/com/zeapo/pwdstore/crypto/PgpHandler.java +++ b/app/src/main/java/com/zeapo/pwdstore/crypto/PgpHandler.java @@ -118,7 +118,8 @@ public class PgpHandler extends Activity implements OpenPgpServiceConnection.OnB @Override public void onStop(){ super.onStop(); - this.mServiceConnection.unbindFromService(); + if (this.mServiceConnection.isBound()) + this.mServiceConnection.unbindFromService(); } @Override