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

[BUG] Error setSelectedIndex: -2 out of bound #2155

Closed
shagymt opened this issue Oct 5, 2024 · 1 comment
Closed

[BUG] Error setSelectedIndex: -2 out of bound #2155

shagymt opened this issue Oct 5, 2024 · 1 comment
Assignees
Labels
status: needs test might be fixed, needs test before closing
Milestone

Comments

@shagymt
Copy link

shagymt commented Oct 5, 2024

Describe the bug
Error trying to simulate a match, doesnt happend all time, only with this match in particular

To Reproduce
Steps to reproduce the behavior:

  1. Go to 'TeamAnalyzer'
  2. Click on 'Actualizar' then 'Analizar' then 'Simular'
  3. See error

Screenshots
image

Platform information:

  • OS: Windows
  • Version 8.0

Additional context
java.lang.IllegalArgumentException: setSelectedIndex: -2 out of bounds
at java.desktop/javax.swing.JComboBox.setSelectedIndex(JComboBox.java:652)
at core.prediction.TeamRatingPanel.(TeamRatingPanel.java:92)
at core.prediction.MatchEnginePanel.(MatchEnginePanel.java:51)
at module.teamAnalyzer.ui.controller.SimButtonListener.actionPerformed(SimButtonListener.java:102)
at java.desktop/javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1972)
at java.desktop/javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2313)
at java.desktop/javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:405)
at java.desktop/javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:262)
at java.desktop/javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:279)
at java.desktop/java.awt.Component.processMouseEvent(Component.java:6626)
at java.desktop/javax.swing.JComponent.processMouseEvent(JComponent.java:3389)
at java.desktop/java.awt.Component.processEvent(Component.java:6391)
at java.desktop/java.awt.Container.processEvent(Container.java:2266)
at java.desktop/java.awt.Component.dispatchEventImpl(Component.java:5001)
at java.desktop/java.awt.Container.dispatchEventImpl(Container.java:2324)
at java.desktop/java.awt.Component.dispatchEvent(Component.java:4833)
at java.desktop/java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4948)
at java.desktop/java.awt.LightweightDispatcher.processMouseEvent(Container.java:4575)
at java.desktop/java.awt.LightweightDispatcher.dispatchEvent(Container.java:4516)
at java.desktop/java.awt.Container.dispatchEventImpl(Container.java:2310)
at java.desktop/java.awt.Window.dispatchEventImpl(Window.java:2780)
at java.desktop/java.awt.Component.dispatchEvent(Component.java:4833)
at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:773)
at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:722)
at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:716)
at java.base/java.security.AccessController.doPrivileged(AccessController.java:399)
at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:86)
at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:97)
at java.desktop/java.awt.EventQueue$5.run(EventQueue.java:746)
at java.desktop/java.awt.EventQueue$5.run(EventQueue.java:744)
at java.base/java.security.AccessController.doPrivileged(AccessController.java:399)
at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:86)
at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:743)
at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:203)
at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:124)
at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:113)
at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:109)
at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
at java.desktop/java.awt.EventDispatchThread.run(EventDispatchThread.java:90)

@wsbrenk wsbrenk self-assigned this Oct 7, 2024
@wsbrenk
Copy link
Collaborator

wsbrenk commented Oct 7, 2024

-2 is not a valid tactic rating skill.

@wsbrenk wsbrenk added this to the 9.0 milestone Oct 7, 2024
@wsbrenk wsbrenk mentioned this issue Oct 7, 2024
2 tasks
wsbrenk added a commit to wsbrenk/HO that referenced this issue Oct 20, 2024
# Conflicts:
#	src/main/resources/release_notes.md
wsbrenk added a commit that referenced this issue Oct 20, 2024
* Fix TeamRatingPanel

* Review TeamRatingPanel

* release_notes.md
@wsbrenk wsbrenk added the status: needs test might be fixed, needs test before closing label Oct 21, 2024
@wsbrenk wsbrenk closed this as completed Nov 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: needs test might be fixed, needs test before closing
Projects
None yet
Development

No branches or pull requests

2 participants