Skip to content

Commit 108f054

Browse files
romainneutronpjcdawkins
authored andcommitted
Fix exception thrown when backend does not have received values for timestamp (#1580)
1 parent 93b39a8 commit 108f054

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Command/Metrics/MetricsCommandBase.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -409,7 +409,7 @@ private function extractValue(array $point, SourceField $sourceField)
409409
throw new \RuntimeException(\sprintf('Source "%s" not found in the data point.', $sourceField->source));
410410
}
411411
if (!isset($point[$sourceField->source][$sourceField->aggregation])) {
412-
throw new \RuntimeException(\sprintf('Aggregation "%s" not found for source "%s".', $sourceField->aggregation, $sourceField->source));
412+
return null;
413413
}
414414

415415
return $point[$sourceField->source][$sourceField->aggregation];

0 commit comments

Comments
 (0)