mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2024-09-12 05:08:48 +00:00
NPE fix for offline users in UserData
git-svn-id: https://svn.java.net/svn/essentials~svn/trunk@1583 e251c2fe-e539-e718-e476-b85c1f46cddb
This commit is contained in:
parent
a005436510
commit
7b825cc8d5
|
@ -324,7 +324,7 @@ public abstract class UserData extends PlayerExtension implements IConf
|
||||||
private ItemStack[] _getSavedInventory()
|
private ItemStack[] _getSavedInventory()
|
||||||
{
|
{
|
||||||
int size = config.getInt("inventory.size", 0);
|
int size = config.getInt("inventory.size", 0);
|
||||||
if (size < 1 || size > getInventory().getSize())
|
if (getInventory() != null && (size < 1 || size > getInventory().getSize()))
|
||||||
{
|
{
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue