Skip to content

Commit

Permalink
Merge pull request #576 from gopcua/log-extobj-typeid
Browse files Browse the repository at this point in the history
ua: log unknown extension object type id
  • Loading branch information
magiconair authored May 4, 2022
2 parents d8f4dea + 134edae commit 77bbd7d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ua/extension_object.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
package ua

import (
"github.com/gopcua/opcua/debug"
"github.com/gopcua/opcua/id"
)

Expand Down Expand Up @@ -75,6 +76,7 @@ func (e *ExtensionObject) Decode(b []byte) (int, error) {
typeID := e.TypeID.NodeID
e.Value = eotypes.New(typeID)
if e.Value == nil {
debug.Printf("ua: unknown extension object %s", typeID)
return buf.Pos(), buf.Error()
}

Expand Down

0 comments on commit 77bbd7d

Please sign in to comment.