mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-02-14 21:22:09 +00:00
Don't cascade null usernames passed from eco api
This commit is contained in:
parent
97c8f5192e
commit
0b925e6fc0
1 changed files with 4 additions and 0 deletions
|
@ -79,6 +79,10 @@ public class Economy
|
||||||
{
|
{
|
||||||
throw new RuntimeException(noCallBeforeLoad);
|
throw new RuntimeException(noCallBeforeLoad);
|
||||||
}
|
}
|
||||||
|
if (name == null)
|
||||||
|
{
|
||||||
|
throw new RuntimeException("Economy username cannot be null");
|
||||||
|
}
|
||||||
return ess.getUser(name);
|
return ess.getUser(name);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue