WASdev / standards.jsr352.jbatch

Home of 'jbatch', a compatible implementation of the Jakarta Batch specification (and the former Reference Implementation for the JSR 352, Batch Applications for the Java Platform specification).
Other
21 stars 18 forks source link

BatchJobUtils#purgeOwnedRepositoryData(String tagName) throws unexpected exception #45

Open scottkurz opened 8 years ago

scottkurz commented 8 years ago

From: haotian@java.net

When calling BatchJobUtils#purgeOwnedRepositoryData(String tagName), if the datasource is not available or the batch schema not created, both will throw NullPointerException

Expected Results:

1) If the available datasource not available, a meaningful exception should be thrown rather than NullPointerException.

2) If the batch schema not created, then this method should return silently because there is no data to purge.