diff options
author | snowleo <snowleo@e251c2fe-e539-e718-e476-b85c1f46cddb> | 2011-06-05 00:01:15 +0000 |
---|---|---|
committer | snowleo <snowleo@e251c2fe-e539-e718-e476-b85c1f46cddb> | 2011-06-05 00:01:15 +0000 |
commit | 1751baeed66d28278fd1153d2c91cfff1eb8004f (patch) | |
tree | 977c40fb498f5c0be7e30df4907f1e5356ca0475 | |
parent | 7b825cc8d5658188fc759c9ee8b64fdd224ba058 (diff) | |
download | Essentials-1751baeed66d28278fd1153d2c91cfff1eb8004f.tar Essentials-1751baeed66d28278fd1153d2c91cfff1eb8004f.tar.gz Essentials-1751baeed66d28278fd1153d2c91cfff1eb8004f.tar.lz Essentials-1751baeed66d28278fd1153d2c91cfff1eb8004f.tar.xz Essentials-1751baeed66d28278fd1153d2c91cfff1eb8004f.zip |
NPE fix for offline users in UserData
git-svn-id: https://svn.java.net/svn/essentials~svn/trunk@1584 e251c2fe-e539-e718-e476-b85c1f46cddb
-rw-r--r-- | Essentials/src/com/earth2me/essentials/UserData.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Essentials/src/com/earth2me/essentials/UserData.java b/Essentials/src/com/earth2me/essentials/UserData.java index 8261ba7a9..dc3115590 100644 --- a/Essentials/src/com/earth2me/essentials/UserData.java +++ b/Essentials/src/com/earth2me/essentials/UserData.java @@ -324,7 +324,7 @@ public abstract class UserData extends PlayerExtension implements IConf private ItemStack[] _getSavedInventory() { int size = config.getInt("inventory.size", 0); - if (getInventory() != null && (size < 1 || size > getInventory().getSize())) + if (getInventory() == null || size < 1 || size > getInventory().getSize()) { return null; } |