Commit a3b99074 by Tuomas Riihimäki

Merge branch 'bugHuntAsm2018' into 'master'

EJBException not found & nullpointerexception  while changing user cards

See merge request !383
2 parents 00dd00b6 5e20d5ca
......@@ -171,7 +171,7 @@ public class CardTemplateBean implements CardTemplateBeanLocal {
PrintedCard biggestCard = null;
for (PrintedCard card : myCards) {
if (card.getEnabled() && biggestCard == null || biggestCard.getTemplate().getPower() < card.getTemplate().getPower()) {
if (card.getEnabled() && (biggestCard == null || biggestCard.getTemplate().getPower() < card.getTemplate().getPower())) {
// The biggest card should be the only one enabled.
if (biggestCard != null) {
biggestCard.setEnabled(false);
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!