MagicTheGathering/mtg-sdk-java

Card.equals() throws NullPointerException

yannekflick opened this issue · 3 comments

If the Manacost is null, the equals method of class Card throws a NullPointerException. Flipcards like Nicol Bolas (m19) have no manacosts.

Oops, that should be looking at cmc, not Mana cost. I'll build a test out for that and fix it tonight.

I will likely have to change it a bit as well, since there are a few cards that wouldn't have multiverseId's. I will be adding test coverage around that as well.

Should be resolved in 09f0a2b Let me know if you have any more issues! Release 0.0.12 has been created.