We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 25c2e26 commit 7ebd45eCopy full SHA for 7ebd45e
sysid/src/main/native/cpp/analysis/FilteringUtils.cpp
@@ -326,9 +326,11 @@ static units::second_t GetMaxStepTime(
326
auto& dataset = it.getValue();
327
328
if (IsRaw(key) && wpi::contains(key, "dynamic")) {
329
- auto duration = dataset.back().timestamp - dataset.front().timestamp;
330
- if (duration > maxStepTime) {
331
- maxStepTime = duration;
+ if (!dataset.empty()) {
+ auto duration = dataset.back().timestamp - dataset.front().timestamp;
+ if (duration > maxStepTime) {
332
+ maxStepTime = duration;
333
+ }
334
}
335
336
0 commit comments