TeslaCN commented on a change in pull request #1956:
URL:
https://github.com/apache/shardingsphere-elasticjob/pull/1956#discussion_r685707779
##########
File path:
elasticjob-lite/elasticjob-lite-lifecycle/src/main/java/org/apache/shardingsphere/elasticjob/lite/lifecycle/internal/settings/JobConfigurationAPIImpl.java
##########
@@ -36,7 +36,11 @@
@Override
public JobConfigurationPOJO getJobConfiguration(final String jobName) {
- return YamlEngine.unmarshal(regCenter.get(new
JobNodePath(jobName).getConfigNodePath()), JobConfigurationPOJO.class);
+ String yamlContent = regCenter.get(new
JobNodePath(jobName).getConfigNodePath());
+ if (yamlContent == null) {
Review comment:
Constant is on the left.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]