When trying to view a Team@Event page for a B team, the app crashes with
Caused by: java.lang.NumberFormatException: For input string: "114B"
at java.lang.Integer.parseInt(Integer.java:797)
at java.lang.Integer.parseInt(Integer.java:915)
at com.thebluealliance.androidclient.helpers.TeamHelper.getTeamNumber(TeamHelper.java:61)
Easy steps to reproduce:
Go to the 2023 Madtown Throwdown event page (Nov 10-12, 2023)
Go to the rankings tab
Expand 114B's rankings
Click "more"
💣 💥
To fix this we just need to adjust our getTeamNumber() logic to properly extract team numbers for B teams.
Test Plan:
New unit test assertions for B teams, and confirmed the previously broken flow now works.
Screenshots:
The summary tab isn't great, but the matches tab works!
Summary:
When trying to view a Team@Event page for a B team, the app crashes with
Easy steps to reproduce:
To fix this we just need to adjust our
getTeamNumber()
logic to properly extract team numbers for B teams.Test Plan: New unit test assertions for B teams, and confirmed the previously broken flow now works.