From ac914031d3a8a7f77458cde1efc5843400896cd9 Mon Sep 17 00:00:00 2001 From: Zrips Date: Mon, 9 Jan 2017 15:42:59 +0200 Subject: [PATCH] Make it null is name is not set properly so we can skip this job --- com/gamingmesh/jobs/config/ConfigManager.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/com/gamingmesh/jobs/config/ConfigManager.java b/com/gamingmesh/jobs/config/ConfigManager.java index 0733602c..7b5f6dbd 100644 --- a/com/gamingmesh/jobs/config/ConfigManager.java +++ b/com/gamingmesh/jobs/config/ConfigManager.java @@ -115,7 +115,7 @@ public class ConfigManager { continue; ConfigurationSection jobSection = jobsSection.getConfigurationSection(jobKey); - String jobName = jobSection.getString("fullname"); + String jobName = jobSection.getString("fullname", null); // Translating unicode jobName = StringEscapeUtils.unescapeJava(jobName); @@ -138,7 +138,7 @@ public class ConfigManager { maxSlots = null; } - String jobShortName = jobSection.getString("shortname"); + String jobShortName = jobSection.getString("shortname", null); if (jobShortName == null) { Jobs.getPluginLogger().warning("Job " + jobKey + " is missing the shortname property. Skipping job!"); continue;