Logout bug in android API using kotlin

I think there is a bug in the logout callback, when using it with Kotlin.

The error is:

Caused by: java.lang.IllegalArgumentException: Parameter specified as non-null is null: method kotlin.jvm.internal.Intrinsics.checkParameterIsNotNull, parameter payload
        at com.auth0.android.provider.LogoutManager.resume(LogoutManager.java:55)
        at com.auth0.android.provider.WebAuthProvider.resume(WebAuthProvider.java:531)
        at com.auth0.android.provider.AuthenticationActivity.deliverAuthenticationResult(AuthenticationActivity.java:129)
        at com.auth0.android.provider.AuthenticationActivity.onResume(AuthenticationActivity.java:90)
        at android.app.Instrumentation.callActivityOnResume(Instrumentation.java:1446)
        at android.app.Activity.performResume(Activity.java:7939)

It looks like the error is that LogoutManager.resume(LogoutManager.java:55) is called like this
callback.onSuccess(null); but the BaseCallback.void onSuccess(T payload); is specified as non null.

Hey there @ambimi-bpappin!

Can you raise that as a GitHub issue and then share the link to it with us here so we can ping repo maintainers about that? Thanks!

Good afternoon,

I’m bringing this issue to the attention of our engineering team. A temporary workaround may be to change the payload (in the onSuccess override function of the logout callback) to Any.