Skip to content

Commit 0b925e6

Browse files
committed
Don't cascade null usernames passed from eco api
1 parent 97c8f51 commit 0b925e6

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Essentials/src/com/earth2me/essentials/api/Economy.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,10 @@ private static User getUserByName(String name)
7979
{
8080
throw new RuntimeException(noCallBeforeLoad);
8181
}
82+
if (name == null)
83+
{
84+
throw new RuntimeException("Economy username cannot be null");
85+
}
8286
return ess.getUser(name);
8387
}
8488

0 commit comments

Comments
 (0)