magefree / magefree/mage

CLIENT - unhandled error in GUI - NullPointerException

Open
#13,378 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
2.4k
Forks
940
Avg merge
2d 12h
Merged PRs (30d)
160

Description

Error type: CLIENT - unhandled error in GUI - NullPointerException

Client version: 1.4.56-V3 (build: 2025-02-09 16:02)
Java version: 1.8.0_201
Default charset: UTF-8

NullPointerException - look at server or client logs for more details

Stack trace:
org.mage.card.arcane.CardPanelRenderModeMTGO$ImageKey.hashCodeImpl(CardPanelRenderModeMTGO.java:87)
org.mage.card.arcane.CardPanelRenderModeMTGO$ImageKey.(CardPanelRenderModeMTGO.java:72)
org.mage.card.arcane.CardPanelRenderModeMTGO.paintCard(CardPanelRenderModeMTGO.java:177)
org.mage.card.arcane.CardPanel.paintComponent(CardPanel.java:380)
javax.swing.JComponent.paint(JComponent.java:1056)
javax.swing.JLayeredPane.paint(JLayeredPane.java:586)
org.mage.card.arcane.CardPanel.paint(CardPanel.java:373)
javax.swing.JComponent.paintChildren(JComponent.java:889)
javax.swing.JComponent.paint(JComponent.java:1065)
javax.swing.JComponent.paintChildren(JComponent.java:889)
and other 57 lines

I had a Liliana emblem in play that puts creatures onto the battlefield under my control when they die, of the 4 creatures that died only 2 of them returned to my board after death with 3 triggers, one may have been a token which is fine, but the other 3 were all non-token creatures.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with CardPanelRenderModeMTGO.java, especially ImageKey.hashCodeImpl at line 87, its constructor at line 72, and paintCard at line 177. Reproduce the reported Liliana emblem scenario while checking client or server logs; done means the GUI no longer throws this NullPointerException and the reported creature-return behavior can be verified.

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
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.