Fixed a possible NPE bug in PermanentView.

This commit is contained in:
LevelX2 2014-05-18 10:30:25 +02:00
parent 2fdc9498fe
commit 7ff932a91a

View file

@ -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();