mirror of
https://github.com/Xahau/xahaud.git
synced 2025-12-06 17:27:52 +00:00
Avoid dereferencing empty optional in ReportingETL
This commit is contained in:
@@ -929,10 +929,14 @@ ReportingETL::ReportingETL(Application& app)
|
|||||||
{
|
{
|
||||||
auto const optStartSeq = section.get("start_sequence");
|
auto const optStartSeq = section.get("start_sequence");
|
||||||
if (optStartSeq)
|
if (optStartSeq)
|
||||||
|
{
|
||||||
|
// set a value so we can dereference
|
||||||
|
startSequence_ = 0;
|
||||||
asciiToIntThrows(
|
asciiToIntThrows(
|
||||||
*startSequence_,
|
*startSequence_,
|
||||||
*optStartSeq,
|
*optStartSeq,
|
||||||
"Expected integral start_sequence config entry. Got: ");
|
"Expected integral start_sequence config entry. Got: ");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
auto const optFlushInterval = section.get("flush_interval");
|
auto const optFlushInterval = section.get("flush_interval");
|
||||||
|
|||||||
Reference in New Issue
Block a user