CLIENT - unhandled error in GUI - IndexOutOfBoundsException
- Dominant language
- Java
- Stars
- 2.4k
- Forks
- 940
- Avg merge
- 2d 12h
- Merged PRs (30d)
- 160
Description
Error type: CLIENT - unhandled error in GUI - IndexOutOfBoundsException
Client version: 1.4.57-V2 (build: 2025-04-19 14:23)
Java version: 1.8.0_201
Default charset: UTF-8
Index: 4, Size: 4
Stack trace:
java.util.ArrayList.rangeCheck(ArrayList.java:657)
java.util.ArrayList.get(ArrayList.java:433)
mage.client.cards.DragCardGrid.sortIntoGrid(DragCardGrid.java:2161)
mage.client.cards.DragCardGrid.setCards(DragCardGrid.java:1820)
mage.client.deckeditor.DeckArea.loadDeck(DeckArea.java:258)
mage.client.deckeditor.DeckEditorPanel.refreshDeck(DeckEditorPanel.java:688)
mage.client.deckeditor.DeckEditorPanel.refreshDeck(DeckEditorPanel.java:680)
mage.client.deckeditor.DeckEditorPanel.lambda$init$2fe10b0c$1(DeckEditorPanel.java:348)
mage.client.util.EventDispatcher.fireEvent(EventDispatcher.java:30)
mage.client.cards.CardEventSource.fireEvent(CardEventSource.java:58)
and other 42 lines
Contributor guide
No contributing guide indexed for this repository
Research direction
Start at mage.client.cards.DragCardGrid.sortIntoGrid (line 2161) and follow how DeckArea.loadDeck (line 258) supplies cards through setCards. Reproduce the deck-loading error and verify that the GUI no longer raises IndexOutOfBoundsException for the reported case.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- desktop
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100