提交 743a9bfd 编写于 作者: X Xavier Léauté

fix offset and nulls

上级 9f742a87
......@@ -109,10 +109,12 @@ public class TimewarpOperator<T> implements PostProcessingOperator<T>
minTime = boundary.getMinTime();
} catch(IllegalArgumentException e) {}
final DateTime maxTime = boundary.getMaxTime();
return (T) ((TimeBoundaryQuery) query).buildResult(
timestamp,
minTime,
boundary.getMaxTime()
minTime != null ? minTime.minus(offset) : null,
maxTime != null ? maxTime.minus(offset) : null
).iterator().next();
}
return (T) new Result(timestamp, value);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册