Make allFactories lazy so we don't hit NPE exceptions (#2491)

This commit is contained in:
Chris Stewart 2021-01-08 14:35:55 -06:00 committed by GitHub
parent 6eff248f3d
commit 72ee201c1f

View File

@ -148,7 +148,7 @@ object TLV extends TLVParentFactory[TLV] {
val typeName = "TLV"
val allFactories: Vector[TLVFactory[TLV]] = {
override lazy val allFactories: Vector[TLVFactory[TLV]] = {
Vector(ErrorTLV,
PingTLV,
PongTLV,