hiscore panel: properly error if result is null

This commit is contained in:
Adam
2018-05-25 20:38:21 -04:00
parent bd71408eac
commit 8860f33c5d

View File

@@ -436,7 +436,7 @@ public class HiscorePanel extends PluginPanel
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.getAttack() == null)
if (result == null || result.getAttack() == null)
{
input.setIcon(ERROR_ICON);
input.setEditable(true);