Got a crash related to the targeting overlays today:
Here's the general scenario:
I attacked with a few creatures, AI cast a 3/3
Flash and blocked my 2/2 First Strike. After blockers were declared:
I cast
Righteous Blow on the blocker
AI cast
Spellstutter Sprite, ETB trigger targeting my righteous blow
(
Dire Undercurrents trigger for the AI to draw a card)
In response to that I cast Azorious Charm targeting the Blocker.
Which yields me an infinite loop of:
java.lang.NullPointerException
at forge.gui.match.TargetingOverlay$OverlayPanel.paintComponent(TargetingOverlay.java:156)
at javax.swing.JComponent.paint(Unknown Source)
at javax.swing.JComponent.paintChildren(Unknown Source)
at javax.swing.JComponent.paint(Unknown Source)
at javax.swing.JLayeredPane.paint(Unknown Source)
at javax.swing.JComponent.paintChildren(Unknown Source)
I'm guessing it doesn't know how to draw the arc from my spell on the stack to the Blocker? Or perhaps, after the target is removed it doesn't know where to find it? I don't believe the crash happened until after I tried to resolve the Charm, so it's probably just an issue of the target for
Righteous Blow is no longer around to provide coordinates.