Verified Commit ac8a6c4a authored by Sebastian Schüpbach's avatar Sebastian Schüpbach
Browse files

catch missing dryrun value

parent 2eaec81d
Pipeline #27774 passed with stages
in 4 minutes and 13 seconds
......@@ -54,7 +54,7 @@ trait MessageHandler {
List(),
ProcessResults(),
headers,
headers.headers("dryRun").asScala.last.value()(0).toInt == 1
headers.headers("dryRun").asScala.lastOption.flatMap(x => Some(x.value()(0).toInt == 1)).getOrElse(false)
)
def consumerClose(): Unit = {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment