Merge pull request #6860 from rcordovano/7389-illegal-arg-ex-ingets-task-pipeline

7389 Remove erroneous IllegalArgumentException throw from IngestTaskPipeline
This commit is contained in:
Richard Cordovano 2021-04-01 12:54:21 -04:00 committed by GitHub
commit a1fbafcd08
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -144,10 +144,11 @@ abstract class IngestTaskPipeline<T extends IngestTask> {
* not been started yet.
*/
Date getStartTime() {
if (startTime == null) {
throw new IllegalStateException("startUp() was not called"); //NON-NLS
Date reportedStartTime = null;
if (startTime != null) {
reportedStartTime = new Date(startTime.getTime());
}
return new Date(startTime.getTime());
return reportedStartTime;
}
/**