Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Class cast crash #449

Open
singpolyma opened this issue Nov 1, 2023 · 0 comments · May be fixed by #455
Open

Class cast crash #449

singpolyma opened this issue Nov 1, 2023 · 0 comments · May be fixed by #455

Comments

@singpolyma
Copy link

Using 3.0.2 I sometimes see this on Android 13:

java.lang.ClassCastException: java.lang.Class cannot be cast to java.lang.reflect.ParameterizedType
    at com.tokenautocomplete.TokenCompleteTextView.reifyParameterizedTypeClass(TokenCompleteTextView.java:1337)
    at com.tokenautocomplete.TokenCompleteTextView.onSaveInstanceState(TokenCompleteTextView.java:1360)
    at android.view.View.dispatchSaveInstanceState(View.java:21538)
    at android.view.ViewGroup.dispatchSaveInstanceState(ViewGroup.java:3982)
    at android.view.ViewGroup.dispatchSaveInstanceState(ViewGroup.java:3982)
    at android.view.ViewGroup.dispatchSaveInstanceState(ViewGroup.java:3982)
    at android.view.ViewGroup.dispatchSaveInstanceState(ViewGroup.java:3982)
    at android.view.ViewGroup.dispatchSaveInstanceState(ViewGroup.java:3982)
    at android.view.ViewGroup.dispatchSaveInstanceState(ViewGroup.java:3982)
    at android.view.ViewGroup.dispatchSaveInstanceState(ViewGroup.java:3982)
    at android.view.ViewGroup.dispatchSaveInstanceState(ViewGroup.java:3982)
    at android.view.ViewGroup.dispatchSaveInstanceState(ViewGroup.java:3982)
    at android.view.View.saveHierarchyState(View.java:21521)
    at com.android.internal.policy.PhoneWindow.saveHierarchyState(PhoneWindow.java:2193)
    at android.app.Activity.onSaveInstanceState(Activity.java:2329)
    at androidx.core.app.ComponentActivity.onSaveInstanceState(ComponentActivity.java:96)
    at androidx.activity.ComponentActivity.onSaveInstanceState(ComponentActivity.java:373)
    at MYAPP.onSaveInstanceState(MYACTIVITY.java:253)
    at android.app.Activity.performSaveInstanceState(Activity.java:2253)
    at android.app.Instrumentation.callActivityOnSaveInstanceState(Instrumentation.java:1601)
    at android.app.ActivityThread.callActivityOnSaveInstanceState(ActivityThread.java:5818)
    at android.app.ActivityThread.callActivityOnStop(ActivityThread.java:5211)
    at android.app.ActivityThread.performStopActivityInner(ActivityThread.java:5177)
    at android.app.ActivityThread.handleStopActivity(ActivityThread.java:5242)
    at android.app.servertransaction.StopActivityItem.execute(StopActivityItem.java:43)
    at android.app.servertransaction.ActivityTransactionItem.execute(ActivityTransactionItem.java:45)
    at android.app.servertransaction.TransactionExecutor.executeLifecycleState(TransactionExecutor.java:179)
    at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:97)
    at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2313)
    at android.os.Handler.dispatchMessage(Handler.java:106)
    at android.os.Looper.loopOnce(Looper.java:201)
    at android.os.Looper.loop(Looper.java:288)
    at android.app.ActivityThread.main(ActivityThread.java:7940)
    at java.lang.reflect.Method.invoke(Method.java)
    at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:548)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:952)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant