mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-18 19:58:00 +00:00
Fix NPE when dealing with copied tokens.
This commit is contained in:
@@ -72,7 +72,7 @@ public class CardFactory {
|
||||
*/
|
||||
public final static Card copyCard(final Card in, boolean assignNewId) {
|
||||
Card out;
|
||||
if (!in.isToken() || in.isCopiedToken()) {
|
||||
if (!(in.isToken() || in.isCopiedToken())) {
|
||||
out = assignNewId ? getCard(in.getPaperCard(), in.getOwner())
|
||||
: getCard(in.getPaperCard(), in.getOwner(), in.getUniqueNumber());
|
||||
} else { // token
|
||||
|
||||
Reference in New Issue
Block a user