Skip to content

Commit

Permalink
fix(plc4go): fixed subscriber trying to add to a nil map part 2
Browse files Browse the repository at this point in the history
  • Loading branch information
sruehl committed Sep 1, 2022
1 parent 1855082 commit 4395053
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions plc4go/internal/bacnetip/Subscriber.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ type Subscriber struct {
func NewSubscriber(connection *Connection) *Subscriber {
return &Subscriber{
connection: connection,
consumers: make(map[*spiModel.DefaultPlcConsumerRegistration]apiModel.PlcSubscriptionEventConsumer),
}
}

Expand Down
1 change: 1 addition & 0 deletions plc4go/internal/cbus/Subscriber.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ type Subscriber struct {
func NewSubscriber(connection *Connection) *Subscriber {
return &Subscriber{
connection: connection,
consumers: make(map[*spiModel.DefaultPlcConsumerRegistration]apiModel.PlcSubscriptionEventConsumer),
}
}

Expand Down
1 change: 1 addition & 0 deletions plc4go/internal/knxnetip/Subscriber.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ type Subscriber struct {
func NewSubscriber(connection *Connection) *Subscriber {
return &Subscriber{
connection: connection,
consumers: make(map[*spiModel.DefaultPlcConsumerRegistration]apiModel.PlcSubscriptionEventConsumer),
}
}

Expand Down

0 comments on commit 4395053

Please sign in to comment.