Ignore nil blocks

Signed-off-by: AKP <tom@tdpain.net>
This commit is contained in:
akp 2022-05-27 21:04:24 +01:00
parent 1877f186fb
commit 027525338c
No known key found for this signature in database
GPG key ID: AA5726202C8879B7

View file

@ -76,6 +76,9 @@ func (b *I3bar) Emit(generators []BlockGenerator) error {
TextColor: defaultColorSet.Bad,
}
}
if b == nil {
continue
}
blocks = append(blocks, b)
}