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

TypeCastException in ListItemRadioButtonWidget #39

Open
luoyexk opened this issue Jun 11, 2021 · 0 comments
Open

TypeCastException in ListItemRadioButtonWidget #39

luoyexk opened this issue Jun 11, 2021 · 0 comments

Comments

@luoyexk
Copy link

luoyexk commented Jun 11, 2021

val radioButton: RadioButton? = radioGroup.getChildAt(index) as RadioButton

Fatal Exception: kotlin.TypeCastException: null cannot be cast to non-null type android.widget.RadioButton
       at dji.ux.beta.core.base.widget.ListItemRadioButtonWidget.setSelected(ListItemRadioButtonWidget.kt:196)
       at dji.ux.beta.core.listitemwidget.rcstickmode.RCStickModeListItemWidget.updateUI(RCStickModeListItemWidget.kt:121)
       at dji.ux.beta.core.listitemwidget.rcstickmode.RCStickModeListItemWidget.access$updateUI(RCStickModeListItemWidget.kt:50)
       at dji.ux.beta.core.listitemwidget.rcstickmode.RCStickModeListItemWidget$reactToModelChanges$1.accept(RCStickModeListItemWidget.kt:81)
       at dji.ux.beta.core.listitemwidget.rcstickmode.RCStickModeListItemWidget$reactToModelChanges$1.accept(RCStickModeListItemWidget.kt:50)
       at dji.thirdparty.io.reactivex.internal.subscribers.LambdaSubscriber.onNext(:8)
       at dji.thirdparty.io.reactivex.internal.operators.flowable.FlowableObserveOn$ObserveOnSubscriber.runAsync(:68)
       at dji.thirdparty.io.reactivex.internal.operators.flowable.FlowableObserveOn$BaseObserveOnSubscriber.run(:17)
       at dji.thirdparty.io.reactivex.android.schedulers.HandlerScheduler$ScheduledRunnable.run(:2)
       at android.os.Handler.handleCallback(Handler.java:938)
       at android.os.Handler.dispatchMessage(Handler.java:99)
       at android.os.Looper.loop(Looper.java:246)
       at android.app.ActivityThread.main(ActivityThread.java:8512)
       at java.lang.reflect.Method.invoke(Method.java)
       at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:596)
       at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1130)
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

No branches or pull requests

1 participant