hiscore panel: properly error if result is null
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user