Fixing a weird NPE, probably because of some card that was removed

This commit is contained in:
marcin.sciesinski
2021-02-19 13:20:32 -08:00
parent bf129ce387
commit caa1c9699d

View File

@@ -287,7 +287,7 @@ public class DeckRequestHandler extends LotroServerRequestHandler implements Uri
String side;
try {
side = _library.getLotroCardBlueprint(cardItem.getBlueprintId()).getSide().toString();
} catch (CardNotFoundException e) {
} catch (Exception e) {
side = "FREE_PEOPLE";
}
card.setAttribute("side", side);