stanstanwang opened a new pull request #1956:
URL: https://github.com/apache/shardingsphere-elasticjob/pull/1956
Bugfix: getJobConfiguration return null instead of throw NullPointerException
Changes proposed in this pull request:
- check the zk result before `YamlEngine.unmarshal`
Before that, getting the JobConfiguration was more troublesome
``` java
JobConfigurationPOJO jobConfiguration = null;
try {
jobConfiguration = jobConfigurationAPI.getJobConfiguration(jobKey);
} catch (NullPointerException e) {
// ignore
}
// do something
```
--
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]