Fixing NRE which causes decks to not load for some players
This commit is contained in:
@@ -569,6 +569,10 @@ public class DeckRequestHandler extends LotroServerRequestHandler implements Uri
|
|||||||
} catch (CardNotFoundException e) {
|
} catch (CardNotFoundException e) {
|
||||||
side = "FREE_PEOPLE";
|
side = "FREE_PEOPLE";
|
||||||
}
|
}
|
||||||
|
catch (NullPointerException e) {
|
||||||
|
_log.debug("Non-sided card?? " + cardItem.getBlueprintId());
|
||||||
|
side = "FREE_PEOPLE";
|
||||||
|
}
|
||||||
card.setAttribute("side", side);
|
card.setAttribute("side", side);
|
||||||
card.setAttribute("blueprintId", cardItem.getBlueprintId());
|
card.setAttribute("blueprintId", cardItem.getBlueprintId());
|
||||||
deckElem.appendChild(card);
|
deckElem.appendChild(card);
|
||||||
|
|||||||
Reference in New Issue
Block a user