=str #19721 Failing FlowConflateSpec and NPE in Batch fixed
This commit is contained in:
parent
9880ad2678
commit
300ac802a0
3 changed files with 40 additions and 11 deletions
|
|
@ -452,8 +452,10 @@ private[akka] final case class Batch[In, Out](max: Long, costFn: In ⇒ Long, se
|
|||
private var pending: In = null.asInstanceOf[In]
|
||||
|
||||
private def flush(): Unit = {
|
||||
push(out, agg)
|
||||
left = max
|
||||
if (agg != null) {
|
||||
push(out, agg)
|
||||
left = max
|
||||
}
|
||||
if (pending != null) {
|
||||
try {
|
||||
agg = seed(pending)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue