General error - StringIndexOutOfBoundsException
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 2.4k
- Forks
- 940
- Avg merge
- 2d 12h
- Merged PRs (30d)
- 160
Description
Error type: General error - StringIndexOutOfBoundsException
Client version: 1.4.54-V3 (build: 2024-09-25 12:58)
String index out of range: 88
Stack trace:
java.lang.String.substring(String.java:1963)
org.mage.card.arcane.TextboxRuleParser.parse(TextboxRuleParser.java:146)
org.mage.card.arcane.CardRenderer.parseRules(CardRenderer.java:151)
org.mage.card.arcane.CardRenderer.(CardRenderer.java:117)
org.mage.card.arcane.ModernCardRenderer.(ModernCardRenderer.java:176)
org.mage.card.arcane.CardRendererFactory.create(CardRendererFactory.java:17)
org.mage.card.arcane.CardPanelRenderModeMTGO.update(CardPanelRenderModeMTGO.java:268)
org.mage.card.arcane.MageLayer.update(MageLayer.java:304)
org.mage.card.arcane.CardPanel.update(CardPanel.java:830)
mage.client.game.BattlefieldPanel.update(BattlefieldPanel.java:228)
and other 20 lines
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start at TextboxRuleParser.parse(TextboxRuleParser.java:146), then follow the callers in CardRenderer.parseRules and CardRenderer's constructor shown in the stack trace. Reproduce the StringIndexOutOfBoundsException with client version 1.4.54-V3 and identify the input that reaches the failing substring call. Done means the affected card-rendering path no longer throws this exception.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- desktop, game-dev
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100