mirror of
https://github.com/magefree/mage.git
synced 2025-12-23 20:11:59 -08:00
Fixed a NPE in deck editor caused by fix of #84.
This commit is contained in:
parent
8f19e94dc0
commit
8dab110060
1 changed files with 10 additions and 4 deletions
|
|
@ -276,16 +276,22 @@ public class MageActionCallback implements ActionCallback {
|
|||
|
||||
@Override
|
||||
public void mouseExited(MouseEvent e, final TransferData data) {
|
||||
hideAll(data.gameId);
|
||||
if (data != null) {
|
||||
hideAll(data.gameId);
|
||||
} else {
|
||||
hideAll(null);
|
||||
}
|
||||
}
|
||||
|
||||
public void hideAll(UUID gameId) {
|
||||
hidePopup();
|
||||
startHideTimeout();
|
||||
this.state = false;
|
||||
ArrowBuilder.getBuilder().removeArrowsByType(gameId, ArrowBuilder.Type.TARGET);
|
||||
ArrowBuilder.getBuilder().removeArrowsByType(gameId, ArrowBuilder.Type.PAIRED);
|
||||
ArrowBuilder.getBuilder().removeArrowsByType(gameId, ArrowBuilder.Type.SOURCE);
|
||||
if (gameId != null) {
|
||||
ArrowBuilder.getBuilder().removeArrowsByType(gameId, ArrowBuilder.Type.TARGET);
|
||||
ArrowBuilder.getBuilder().removeArrowsByType(gameId, ArrowBuilder.Type.PAIRED);
|
||||
ArrowBuilder.getBuilder().removeArrowsByType(gameId, ArrowBuilder.Type.SOURCE);
|
||||
}
|
||||
}
|
||||
|
||||
public void enlargeCard() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue