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
commit0b925e6fc0f82e97b13f8510cc3e0447f6426711 (patch)
tree2f7311c2d50f11ccebf34c8a0a2fec8f6b45df6c
parent97c8f5192efdaed644ea84707bbc530022f3b651 (diff)
downloadEssentials-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.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);
}