Skip to content

Commit

Permalink
fix: ENG-1082 benthos segfault when subscribing to i=84 (#61)
Browse files Browse the repository at this point in the history
  • Loading branch information
JeremyTheocharis authored Sep 23, 2024
1 parent 55bdc81 commit 6bb8b1f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion opcua_plugin/browse.go
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,11 @@ func browse(ctx context.Context, n *opcua.Node, path string, level int, logger *
switch err := attrs[4].Status; {
case errors.Is(err, ua.StatusOK):
if attrs[4].Value == nil {
errChan <- errors.New("data type is nil")
// This is not an error, it can happen for some OPC UA servers...
// in oru case it is the amine amaach opcua simulator
// if the data type is nil, we simpy ignore it
// errChan <- errors.New("data type is nil")
logger.Debugf("ignoring node: %s as its datatype is nil...\n", path)
return
} else {
switch v := attrs[4].Value.NodeID().IntID(); v {
Expand Down

0 comments on commit 6bb8b1f

Please sign in to comment.