added null check for the progress dialog
@@ -184,9 +184,11 @@ public class Kommunicate {
callback.onReceive(user, context, (ResultReceiver) resultData.getParcelable(KmConstants.FINISH_ACTIVITY_RECEIVER));
}
} else {
+ if (progressDialog != null) {
progressDialog.dismiss();
}
}
+ }
};
