You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On Android 8.1 emulator with Google Play (also reported on 8.0), do this:
Open the "Districts" screen via the hamburger menu.
Scroll down.
Observe crash due to invalid district key "2018tx".
The problem is the string "tx" is not in the list of strings in DistrictType.fromAbbreviation().
--------- beginning of crash
09-15 21:19:22.197 4387-4387/com.thebluealliance.androidclient.development E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.thebluealliance.androidclient.development, PID: 4387
java.lang.IllegalArgumentException: Invalid district key
at com.thebluealliance.androidclient.listeners.DistrictClickListener.<init>(DistrictClickListener.java:21)
at com.thebluealliance.androidclient.listitems.DistrictListElement.getView(DistrictListElement.java:61)
at com.thebluealliance.androidclient.adapters.ListViewAdapter.getView(ListViewAdapter.java:29)
at android.widget.AbsListView.obtainView(AbsListView.java:2365)
at android.widget.ListView.makeAndAddView(ListView.java:2052)
at android.widget.ListView.fillDown(ListView.java:786)
at android.widget.ListView.fillGap(ListView.java:750)
at android.widget.AbsListView.trackMotionScroll(AbsListView.java:5225)
at android.widget.ListView.trackMotionScroll(ListView.java:1971)
at android.widget.AbsListView$FlingRunnable.run(AbsListView.java:4769)
at android.view.Choreographer$CallbackRecord.run(Choreographer.java:911)
at android.view.Choreographer.doCallbacks(Choreographer.java:723)
at android.view.Choreographer.doFrame(Choreographer.java:655)
at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:897)
at android.os.Handler.handleCallback(Handler.java:790)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:164)
at android.app.ActivityThread.main(ActivityThread.java:6494)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:438)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:807)
09-15 21:19:22.199 4387-4387/com.thebluealliance.androidclient.development W/GAv4: Discarding hit. Missing tracking id parameter: exd=IllegalArgumentException (@DistrictClickListener:<init>:21) {main},cd=com.thebluealliance.androidclient.activities.HomeActivity,a=1824206452,exf=1,sf=100.0,t=exception,av=4.3.1-2+g7354a73,an=The Blue Alliance Debug,aid=4.3.1-2+g7354a73,tid=
09-15 21:19:22.203 4387-4387/com.thebluealliance.androidclient.development E/UncaughtException: java.lang.IllegalArgumentException: Invalid district key
at com.thebluealliance.androidclient.listeners.DistrictClickListener.<init>(DistrictClickListener.java:21)
at com.thebluealliance.androidclient.listitems.DistrictListElement.getView(DistrictListElement.java:61)
at com.thebluealliance.androidclient.adapters.ListViewAdapter.getView(ListViewAdapter.java:29)
at android.widget.AbsListView.obtainView(AbsListView.java:2365)
at android.widget.ListView.makeAndAddView(ListView.java:2052)
at android.widget.ListView.fillDown(ListView.java:786)
at android.widget.ListView.fillGap(ListView.java:750)
at android.widget.AbsListView.trackMotionScroll(AbsListView.java:5225)
at android.widget.ListView.trackMotionScroll(ListView.java:1971)
at android.widget.AbsListView$FlingRunnable.run(AbsListView.java:4769)
at android.view.Choreographer$CallbackRecord.run(Choreographer.java:911)
at android.view.Choreographer.doCallbacks(Choreographer.java:723)
at android.view.Choreographer.doFrame(Choreographer.java:655)
at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:897)
at android.os.Handler.handleCallback(Handler.java:790)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:164)
at android.app.ActivityThread.main(ActivityThread.java:6494)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:438)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:807)
The text was updated successfully, but these errors were encountered:
On Android 8.1 emulator with Google Play (also reported on 8.0), do this:
"2018tx"
.The problem is the string
"tx"
is not in the list of strings inDistrictType.fromAbbreviation()
.The text was updated successfully, but these errors were encountered: