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 | 0b925e6fc0f82e97b13f8510cc3e0447f6426711 (patch) | |
tree | 2f7311c2d50f11ccebf34c8a0a2fec8f6b45df6c | |
parent | 97c8f5192efdaed644ea84707bbc530022f3b651 (diff) | |
download | Essentials-0b925e6fc0f82e97b13f8510cc3e0447f6426711.tar Essentials-0b925e6fc0f82e97b13f8510cc3e0447f6426711.tar.gz Essentials-0b925e6fc0f82e97b13f8510cc3e0447f6426711.tar.lz Essentials-0b925e6fc0f82e97b13f8510cc3e0447f6426711.tar.xz Essentials-0b925e6fc0f82e97b13f8510cc3e0447f6426711.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); } |