mProgressDialogFragment null check

This commit is contained in:
Dominik Schürmann 2014-10-02 14:05:54 +02:00
parent c2f85c7446
commit 8192bf99a6

View File

@ -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();