diff options
author | Dominik Schürmann <dominik@dominikschuermann.de> | 2014-10-02 14:05:54 +0200 |
---|---|---|
committer | Dominik Schürmann <dominik@dominikschuermann.de> | 2014-10-02 14:05:54 +0200 |
commit | 8192bf99a6e798ab7ffd8653e666bd2c984e87c7 (patch) | |
tree | 10586389a118b39162d923ab4b1211c604a73dfb /OpenKeychain/src/main/java/org/sufficientlysecure/keychain | |
parent | c2f85c744611bddb033146812ffa62e0ebcdadcd (diff) | |
download | open-keychain-8192bf99a6e798ab7ffd8653e666bd2c984e87c7.tar.gz open-keychain-8192bf99a6e798ab7ffd8653e666bd2c984e87c7.tar.bz2 open-keychain-8192bf99a6e798ab7ffd8653e666bd2c984e87c7.zip |
mProgressDialogFragment null check
Diffstat (limited to 'OpenKeychain/src/main/java/org/sufficientlysecure/keychain')
-rw-r--r-- | OpenKeychain/src/main/java/org/sufficientlysecure/keychain/service/KeychainIntentServiceHandler.java | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/service/KeychainIntentServiceHandler.java b/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/service/KeychainIntentServiceHandler.java index 0e646fca1..180020d0b 100644 --- a/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/service/KeychainIntentServiceHandler.java +++ b/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/service/KeychainIntentServiceHandler.java @@ -88,6 +88,11 @@ public class KeychainIntentServiceHandler extends Handler { public void handleMessage(Message message) { Bundle data = message.getData(); + if (mProgressDialogFragment == null) { + Log.e(Constants.TAG, "Progress has not been updated because mProgressDialogFragment was null!"); + return; + } + switch (message.arg1) { case MESSAGE_OKAY: mProgressDialogFragment.dismissAllowingStateLoss(); |