mirror of
https://github.com/TotalFreedomMC/TF-PlotSquared.git
synced 2025-02-11 19:50:38 +00:00
Fix NPE
This commit is contained in:
parent
56907e4580
commit
bc0c0abe7e
1 changed files with 1 additions and 1 deletions
|
@ -366,7 +366,7 @@ public class ExpireManager {
|
|||
} else {
|
||||
opp = UUIDHandler.getUUIDWrapper().getOfflinePlayer(name);
|
||||
}
|
||||
if ((last = opp.getLastPlayed()) != 0) {
|
||||
if (opp != null && (last = opp.getLastPlayed()) != 0) {
|
||||
this.dates_cache.put(uuid, last);
|
||||
} else {
|
||||
return 0;
|
||||
|
|
Loading…
Reference in a new issue