Skip to content

Commit

Permalink
Update CardCopyService.java
Browse files Browse the repository at this point in the history
fix NPE
  • Loading branch information
Hanmac authored and Northmoc committed Dec 28, 2024
1 parent 38550ea commit fe763e1
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -347,7 +347,9 @@ public Card getLKICopy(Map<Integer, Card> cachedMap) {
newCopy.setChosenType2(copyFrom.getChosenType2());
newCopy.setNamedCards(Lists.newArrayList(copyFrom.getNamedCards()));
newCopy.setChosenColors(Lists.newArrayList(copyFrom.getChosenColors()));
newCopy.setChosenLetters(Lists.newArrayList(copyFrom.getChosenLetters()));
if (copyFrom.hasChosenLetter()) {
newCopy.setChosenLetters(Lists.newArrayList(copyFrom.getChosenLetters()));
}
if (copyFrom.hasChosenNumber()) {
newCopy.setChosenNumber(copyFrom.getChosenNumber());
}
Expand Down

0 comments on commit fe763e1

Please sign in to comment.