Fix error if no render triggers are defined.

This commit is contained in:
zeeZ 2011-05-17 00:38:26 +02:00
parent 05f3ced64f
commit b804aa72f8

View File

@ -110,8 +110,12 @@ public class DynmapPlugin extends JavaPlugin {
hchand = new HeroChatHandler(configuration, this, getServer());
enabledTriggers.clear();
for (Object trigger : configuration.getList("render-triggers")) {
enabledTriggers.add((String) trigger);
List<Object> triggers = configuration.getList("render-triggers");
if (triggers != null)
{
for (Object trigger : triggers) {
enabledTriggers.add((String) trigger);
}
}
registerEvents();