I'm trying to get a loop going for a configuration section. Here is a config example:
The line of code trying to loop through the config is:
I'm getting a NullPointerExceptionError when this loop runs.
Code:
reports:
389515f2-6aa6-475a-b5ca-8965422e2729:
Zoxu: Hacking
Italic: Fly Hacking
The line of code trying to loop through the config is:
Code:
for (String users : main.getDataFile().getConfigurationSection("reports." + target.getUniqueId().toString()).getKeys(false)) {
I'm getting a NullPointerExceptionError when this loop runs.
