MagicTheGathering/mtg-sdk-java

set.getCards() returns null in v0.0.10

Closed this issue · 6 comments

The project I'm currently working on in which this is an issue is here:

https://github.com/T3rrabyte/MTGDS

Is this all sets or a specific set you are getting the error with?

Every set.

Okay, I will take a look hopefully tonight or tomorrow, and will update with additional information as needed.

Thank you for the quick response!

I did not realize you are using getAllSets().get(index).getCards; I am not sure if the rate limits on the api will allow for getting all sets and referencing the cards that way. I am building out a test currently and going to give it a run. It will also drastically slow down the performance of getAllSets, so I may be adding a new method of getAllSetsWithCards();

Should be fixed in ae007cf which will be appearing as v0.0.11. There will be a future v0.0.12 release that will also add this functionality to a filter get all sets.