mirror of
https://github.com/moparisthebest/open-keychain
synced 2024-11-27 11:12:15 -05:00
mProgressDialogFragment null check
This commit is contained in:
parent
c2f85c7446
commit
8192bf99a6
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user