Fixed NPE when getting flairs
Side effect: reduced Legendosh bug to happen every 10 seconds. I suspect the author variable is null
This commit is contained in:
parent
64529eef73
commit
7b9aa332d8
1 changed files with 1 additions and 1 deletions
|
@ -141,7 +141,7 @@ public class PluginMain extends JavaPlugin { // Translated to Java: 2015.07.15.
|
||||||
if (PlayersWithFlairs.contains(ign))
|
if (PlayersWithFlairs.contains(ign))
|
||||||
continue;
|
continue;
|
||||||
try (ChatPlayer mp = TBMCPlayer.getFromName(ign).asPluginPlayer(ChatPlayer.class)) { // Loads player file
|
try (ChatPlayer mp = TBMCPlayer.getFromName(ign).asPluginPlayer(ChatPlayer.class)) { // Loads player file
|
||||||
if (mp == null)
|
if (mp == null || mp.getUserNames() == null || author == null)
|
||||||
continue;
|
continue;
|
||||||
/*
|
/*
|
||||||
* if (!JoinedBefore(mp, 2015, 6, 5)) continue;
|
* if (!JoinedBefore(mp, 2015, 6, 5)) continue;
|
||||||
|
|
Loading…
Reference in a new issue