Calendar endDate = (Calendar) startDate.clone();
endDate.add(Calendar.DAY_OF_MONTH, 1);
double workHoursPerDay = timeTrackingConfiguration.getHoursPerDay().doubleValue();
double expectedTimeSpent = workHoursPerDay * DateTimeConverterUtil.SECONDS_PER_MINUTE
List<EntityCondition> exprList =
<BUG>WorklogUtil.createWorklogQueryExprListWithPermissionCheck(user, startDate, endDate);

List<GenericValue> worklogGVList =</BUG>
ComponentAccessor.getOfBizDelegator().findByAnd("IssueWorklogView", exprList);
if ((worklogGVList == null) || worklogGVList.isEmpty()) {

Calendar endDate = (Calendar) startDate.clone();
endDate.add(Calendar.DAY_OF_MONTH, 1);
double workHoursPerDay = timeTrackingConfiguration.getHoursPerDay().doubleValue();
double expectedTimeSpent = workHoursPerDay * DateTimeConverterUtil.SECONDS_PER_MINUTE
List<EntityCondition> exprList =
WorklogUtil.createWorklogQueryExprListWithPermissionCheck(user, startDate.getTimeInMillis(),
endDate.getTimeInMillis());
List<GenericValue> worklogGVList =
ComponentAccessor.getOfBizDelegator().findByAnd("IssueWorklogView", exprList);
if ((worklogGVList == null) || worklogGVList.isEmpty()) {
