1
0
mirror of https://github.com/essentials/Essentials.git synced 2025-08-08 23:57:23 +02:00

Don't cascade null usernames passed from eco api

This commit is contained in:
KHobbits
2014-07-10 11:48:54 +01:00
parent 97c8f5192e
commit 0b925e6fc0

View File

@@ -79,6 +79,10 @@ public class Economy
{
throw new RuntimeException(noCallBeforeLoad);
}
if (name == null)
{
throw new RuntimeException("Economy username cannot be null");
}
return ess.getUser(name);
}