mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-02 00:45:58 +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");
|
||||
if (optStartSeq)
|
||||
{
|
||||
// set a value so we can dereference
|
||||
startSequence_ = 0;
|
||||
asciiToIntThrows(
|
||||
*startSequence_,
|
||||
*optStartSeq,
|
||||
"Expected integral start_sequence config entry. Got: ");
|
||||
}
|
||||
}
|
||||
|
||||
auto const optFlushInterval = section.get("flush_interval");
|
||||
|
||||
Reference in New Issue
Block a user