meraki-analytics / orianna

A Java framework for the Riot Games League of Legends API (http://developer.riotgames.com/).
MIT License
181 stars 56 forks source link

getChampionIDs() null object #18

Closed knezzz closed 9 years ago

knezzz commented 9 years ago

For summoner "SalvadorDali1" on EUNE last 10 games he played just Jinx, Fiora and Pantheon (since exception root is for getChampionIDs)

new ArrayList<>(RiotAPI.getRecentGames(summonerName));
java.lang.NullPointerException: Attempt to invoke interface method 'java.util.Iterator java.util.List.iterator()' on a null object reference
com.robrua.orianna.type.dto.game.Game.getChampionIDs(Game.java:76)
com.robrua.orianna.type.dto.game.RecentGames.getChampionIDs(RecentGames.java:69)
com.robrua.orianna.api.core.GameAPI.getRecentGames(GameAPI.java:29)
com.robrua.orianna.api.core.GameAPI.getRecentGames(GameAPI.java:52)
com.robrua.orianna.api.core.RiotAPI.getRecentGames(RiotAPI.java:951)
robrua commented 9 years ago

Hey,

This should be fixed in the latest snapshot right now and will be in the next release.