summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKHobbits <rob@khobbits.co.uk>2014-07-10 11:48:54 +0100
committerKHobbits <rob@khobbits.co.uk>2014-07-10 11:48:54 +0100
commit359bef2bba4740942f84de5ec0d92d1fcae8a4e4 (patch)
treedeecd6709ac218e42fed5132081568b114b11a52
parent1489b56131dba74b07329b691feebb4631bccb59 (diff)
downloadEssentials-359bef2bba4740942f84de5ec0d92d1fcae8a4e4.tar
Essentials-359bef2bba4740942f84de5ec0d92d1fcae8a4e4.tar.gz
Essentials-359bef2bba4740942f84de5ec0d92d1fcae8a4e4.tar.lz
Essentials-359bef2bba4740942f84de5ec0d92d1fcae8a4e4.tar.xz
Essentials-359bef2bba4740942f84de5ec0d92d1fcae8a4e4.zip
Don't cascade null usernames passed from eco api
-rw-r--r--Essentials/src/com/earth2me/essentials/api/Economy.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/Essentials/src/com/earth2me/essentials/api/Economy.java b/Essentials/src/com/earth2me/essentials/api/Economy.java
index c694d63fd..f12823409 100644
--- a/Essentials/src/com/earth2me/essentials/api/Economy.java
+++ b/Essentials/src/com/earth2me/essentials/api/Economy.java
@@ -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);
}