NGimhana commented on a change in pull request #128:
URL: https://github.com/apache/oodt/pull/128#discussion_r693685461
##########
File path:
webapp/wmservices/src/main/java/org/apache/oodt/cas/wmservices/resources/WorkflowInstanceResource.java
##########
@@ -56,10 +56,12 @@ public WorkflowInstanceResource(WorkflowInstance
workflowInstance) {
this.workflowInstanceId = workflowInstance.getId();
this.currentTaskId = workflowInstance.getCurrentTaskId();
this.startDate = workflowInstance.getStartDate().toString();
- this.endDate = workflowInstance.getEndDate().toString();
this.timesBlocked = workflowInstance.getTimesBlocked();
this.sharedContext = new
MetadataResource(workflowInstance.getSharedContext());
this.workflowState = new
WorkflowStateResource(workflowInstance.getState());
+ if (workflowInstance.getEndDate() != null){
Review comment:
Shall we use StringUtils.isEmpty() for null check
--
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]