mirror of
https://github.com/magefree/mage.git
synced 2026-01-26 21:29:17 -08:00
Fixed a possible NPE bug in PermanentView.
This commit is contained in:
parent
2fdc9498fe
commit
7ff932a91a
1 changed files with 1 additions and 1 deletions
|
|
@ -81,7 +81,7 @@ public class PermanentView extends CardView {
|
|||
this.copy = permanent.isCopy();
|
||||
|
||||
// for fipped, transformed or copied cards, switch the names
|
||||
if (!original.getName().equals(this.getName())) {
|
||||
if (original != null && !original.getName().equals(this.getName())) {
|
||||
if (permanent.isCopy() && permanent.isFlipCard()) {
|
||||
this.alternateName = permanent.getFlipCardName();
|
||||
this.originalName = this.getName();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue