OTTAA-Project / OTTAAProject

Join us to create the first Augmentative communication platform for speech-impaired children!
https://ottaa-project.github.io/
GNU General Public License v3.0
5 stars 2 forks source link

[Bug]: Memory game Bug Report #170

Closed gonojuarez closed 1 year ago

gonojuarez commented 1 year ago

Contact Details

gonojuarez17@gmail.com

Branch name

dev

What happened?

A bug happened! When the system tries to load a pictogram in the memory game & the group is empty.

Where are you seeing the problem on?

Android

Relevant log output

java.lang.ArrayIndexOutOfBoundsException: length=0; index=1
    com.stonefacesoft.ottaa.Games.MemoryGame.setOption(MemoryGame.java:224)
    com.stonefacesoft.ottaa.Games.MemoryGame.selectOption(MemoryGame.java:449)
    com.stonefacesoft.ottaa.Games.MemoryGame.onClick(MemoryGame.java:105)
    android.view.View.performClick(View.java:7259)
    android.view.View.performClickInternal(View.java:7236)
    android.view.View$PerformClick.run(View.java:27900)
    android.os.Handler.handleCallback(Handler.java:883)
    android.os.Handler.dispatchMessage(Handler.java:100)
    android.os.Looper.loop(Looper.java:214)
    android.app.ActivityThread.main(ActivityThread.java:7559)
    java.lang.reflect.Method.invoke(Method.java:0)
    com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:492)
    com.android.internal.os.ZygoteInit.main(ZygoteInit.java:935)

Code of Conduct