mirror of
https://github.com/Zrips/Jobs.git
synced 2024-11-25 20:16:13 +01:00
Make it null is name is not set properly so we can skip this job
This commit is contained in:
parent
6ca08ce0f2
commit
ac914031d3
@ -115,7 +115,7 @@ public class ConfigManager {
|
|||||||
continue;
|
continue;
|
||||||
|
|
||||||
ConfigurationSection jobSection = jobsSection.getConfigurationSection(jobKey);
|
ConfigurationSection jobSection = jobsSection.getConfigurationSection(jobKey);
|
||||||
String jobName = jobSection.getString("fullname");
|
String jobName = jobSection.getString("fullname", null);
|
||||||
|
|
||||||
// Translating unicode
|
// Translating unicode
|
||||||
jobName = StringEscapeUtils.unescapeJava(jobName);
|
jobName = StringEscapeUtils.unescapeJava(jobName);
|
||||||
@ -138,7 +138,7 @@ public class ConfigManager {
|
|||||||
maxSlots = null;
|
maxSlots = null;
|
||||||
}
|
}
|
||||||
|
|
||||||
String jobShortName = jobSection.getString("shortname");
|
String jobShortName = jobSection.getString("shortname", null);
|
||||||
if (jobShortName == null) {
|
if (jobShortName == null) {
|
||||||
Jobs.getPluginLogger().warning("Job " + jobKey + " is missing the shortname property. Skipping job!");
|
Jobs.getPluginLogger().warning("Job " + jobKey + " is missing the shortname property. Skipping job!");
|
||||||
continue;
|
continue;
|
||||||
|
Loading…
Reference in New Issue
Block a user