hiscore client: check response code of hiscore lookups

This commit is contained in:
Adam
2018-06-26 20:11:47 -04:00
committed by Jordan Atwood
parent fc16e51c70
commit 17d0f49aee
2 changed files with 13 additions and 5 deletions

View File

@@ -413,11 +413,7 @@ public class HiscorePanel extends PluginPanel
return;
}
/*
For some reason, the fetch results would sometimes return a not null object
with all null attributes, to check for that, i'll just null check one of the attributes.
*/
if (result == null || result.getAttack() == null)
if (result == null)
{
input.setIcon(ERROR_ICON);
input.setEditable(true);