meraki-analytics / orianna

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

Participant.getSummoner returns null #12

Closed EntilZha closed 9 years ago

EntilZha commented 9 years ago

Found something else that seems like a bug. Using Participant from RiotAPI.getMatch, the following code results in a null value, which then throws null pointer on attempting to access its fields

val participant: Participant = ...
val summoner = participant.getSummoner
// At this point summoner is null, so the calls below fail
summoner.getID
summoner.getMatchHistory
// So on and so forth

Like last issue, more than willing to help out, but not familiar with code base.

robrua commented 9 years ago

This is the intended behavior. For a lot of matches Riot just doesn't send the identifying information for a summoner, so there's no way to provide it.