#NullPointException

1 messages · Page 1 of 1 (latest)

cunning oracle
#

Okay

bleak pasture
#

henlo

cunning oracle
#

Send the class that uses your ConfigManager

bleak pasture
#

uh just tell me which part you need

#

i don't want to share the whole thing

cunning oracle
#

Material mat = Material.matchMaterial(cfgn.getMaterialsConfig().getString(name + "ConfigEnabled"));

languid isle
#

public goes brrr

cunning oracle
#

But the entire thing

bleak pasture
#

it's a method for making an item with another method

cunning oracle
#

Yes but the variable cfgn is null

#

And since it’s presumably a field

bleak pasture
#

private static ConfigManager cfgn;

cunning oracle
#

Sending the class is appropriate

#

You have to send the entire class, that will not do

edgy iron
#

Chances are either you're not setting it or the value you're setting it to is null

#

which one exactly, well we don't have enough code to figure out