mirror of
https://github.com/bitcoin-s/bitcoin-s.git
synced 2025-01-19 05:43:51 +01:00
Make allFactories lazy so we don't hit NPE exceptions (#2491)
This commit is contained in:
parent
6eff248f3d
commit
72ee201c1f
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user