java.lang.ClassCastException: mva3.adapter.ItemSection cannot be cast to mva3.adapter.TreeSection
at mva3.adapter.TreeSection.getChild(TreeSection.java:76)
at dev.ahamed.mva.sample.view.nested.NestedSectionFragment$1.onDelete(NestedSectionFragment.java:37)
at dev.ahamed.mva.sample.view.nested.CommentBinder.lambda$initViewHolder$0(CommentBinder.java:28)
at dev.ahamed.mva.sample.view.nested.-$$Lambda$CommentBinder$BL6S8bj_RCaBZ4fWZK0Huo3p0eI.onClick(Unknown Source:4)
at android.view.View.performClick(View.java:6320)
at com.google.android.material.button.MaterialButton.performClick(MaterialButton.java:932)
at android.view.View$PerformClick.run(View.java:24980)
at android.os.Handler.handleCallback(Handler.java:794)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:176)
at android.app.ActivityThread.main(ActivityThread.java:6662)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:547)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:873)
Please complete the following information:
java.lang.ClassCastException: mva3.adapter.ItemSection cannot be cast to mva3.adapter.TreeSection at mva3.adapter.TreeSection.getChild(TreeSection.java:76) at dev.ahamed.mva.sample.view.nested.NestedSectionFragment$1.onDelete(NestedSectionFragment.java:37) at dev.ahamed.mva.sample.view.nested.CommentBinder.lambda$initViewHolder$0(CommentBinder.java:28) at dev.ahamed.mva.sample.view.nested.-$$Lambda$CommentBinder$BL6S8bj_RCaBZ4fWZK0Huo3p0eI.onClick(Unknown Source:4) at android.view.View.performClick(View.java:6320) at com.google.android.material.button.MaterialButton.performClick(MaterialButton.java:932) at android.view.View$PerformClick.run(View.java:24980) at android.os.Handler.handleCallback(Handler.java:794) at android.os.Handler.dispatchMessage(Handler.java:99) at android.os.Looper.loop(Looper.java:176) at android.app.ActivityThread.main(ActivityThread.java:6662) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:547) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:873) Please complete the following information: