diff options
author | KHobbits <rob@khobbits.co.uk> | 2014-07-10 11:48:54 +0100 |
---|---|---|
committer | KHobbits <rob@khobbits.co.uk> | 2014-07-10 11:48:54 +0100 |
commit | 359bef2bba4740942f84de5ec0d92d1fcae8a4e4 (patch) | |
tree | deecd6709ac218e42fed5132081568b114b11a52 | |
parent | 1489b56131dba74b07329b691feebb4631bccb59 (diff) | |
download | Essentials-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.java | 4 |
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); } |