Giter Club home page Giter Club logo

Comments (6)

ceryle avatar ceryle commented on June 8, 2024

Hi stephen,
I will fix that issue in the next release, thanks for informing.

from radiorealbutton.

stephen-workpop avatar stephen-workpop commented on June 8, 2024

Thank you! Let me know if you need help with reproducing the issue.

from radiorealbutton.

ceryle avatar ceryle commented on June 8, 2024

Hi,
Thanks. I fixed the issue and it should be working properly now.

from radiorealbutton.

stephen-workpop avatar stephen-workpop commented on June 8, 2024

Thank you for the quick fix. It seems to be working now. Unfortunately, if you call deselect() when nothing is selected, you get a crash. This may be by design, but I personally feel the method should be a little more resilient.

In the following stack, I am calling deselect() on aRadioRealButtonGroup that does not have a currently selected value during the creation of my Activity. This causes an index out-of-bounds crash. For now, I am just making sure that getPosition != -1 before calling deselect() to avoid this crash.

04-28 11:06:45.147 15986-15986/com.workpop.emp.debug E/AndroidRuntime: FATAL EXCEPTION: main Process: com.workpop.emp.debug, PID: 15986 java.lang.RuntimeException: Unable to start activity ComponentInfo{com.workpop.emp.debug/com.workpop.emp.flows.review.CandidateReviewFilterActivity}: java.lang.ArrayIndexOutOfBoundsException: length=12; index=-1 at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2416) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2476) at android.app.ActivityThread.-wrap11(ActivityThread.java) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1344) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:148) at android.app.ActivityThread.main(ActivityThread.java:5417) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616) Caused by: java.lang.ArrayIndexOutOfBoundsException: length=12; index=-1 at java.util.ArrayList.get(ArrayList.java:310) at co.ceryle.radiorealbutton.library.RadioRealButtonGroup.deselect(RadioRealButtonGroup.java:611) at com.workpop.emp.flows.review.CandidateReviewFilterActivity.initializeUIFromCurrentFilterValues(CandidateReviewFilterActivity.java:279) at com.workpop.emp.flows.review.CandidateReviewFilterActivity.onCreate(CandidateReviewFilterActivity.java:257) at android.app.Activity.performCreate(Activity.java:6251) at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1107) at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2369) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2476)  at android.app.ActivityThread.-wrap11(ActivityThread.java)  at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1344)  at android.os.Handler.dispatchMessage(Handler.java:102)  at android.os.Looper.loop(Looper.java:148)  at android.app.ActivityThread.main(ActivityThread.java:5417)  at java.lang.reflect.Method.invoke(Native Method)  at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)  at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616) 

from radiorealbutton.

ceryle avatar ceryle commented on June 8, 2024

Hi,
Sorry for that, it is now working as expected this time.

from radiorealbutton.

stephen-workpop avatar stephen-workpop commented on June 8, 2024

Thanks!

from radiorealbutton.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.