Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crash on "Transactions proposal" and fix budget when some players proposition is existing #187

Closed
axel3rd opened this issue Apr 6, 2021 · 2 comments
Assignees
Labels
bug Something isn't working
Milestone

Comments

@axel3rd
Copy link
Owner

axel3rd commented Apr 6, 2021

Updating team ...

Transactions proposal ...
Exception in thread "main" java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
        at java.util.ArrayList.rangeCheck(ArrayList.java:657)
        at java.util.ArrayList.get(ArrayList.java:433)
        at org.blondin.mpg.Main.writeTransactionsProposal(Main.java:262)
        at org.blondin.mpg.Main.processGames(Main.java:208)
        at org.blondin.mpg.Main.processLeague(Main.java:115)
        at org.blondin.mpg.Main.process(Main.java:83)
        at org.blondin.mpg.Main.main(Main.java:68)
@axel3rd axel3rd added the bug Something isn't working label Apr 6, 2021
@axel3rd axel3rd added this to the 1.7.3 milestone Apr 6, 2021
@axel3rd axel3rd self-assigned this Apr 6, 2021
@axel3rd
Copy link
Owner Author

axel3rd commented Apr 6, 2021

The root cause is when team has no Goalkeepers

@axel3rd axel3rd changed the title Crash on "Transactions proposal" Crash on "Transactions proposal" and fix budget when some players proposition is existing Apr 6, 2021
@axel3rd
Copy link
Owner Author

axel3rd commented Apr 6, 2021

In addition, the proposed budget should take into account the current proposals on some players.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant