OPCFoundation / UA-Java-Legacy

This repository is provided by OPC Foundation as legacy support for an Java version for OPC UA.
https://github.com/OPCFoundation/UA-.NETStandard
Other
355 stars 227 forks source link

Default instance of NamespaceTable is not used in Application encoderContext #232

Open HiroSK80 opened 1 year ago

HiroSK80 commented 1 year ago

Original code: private EncoderContext encoderContext = new EncoderContext(new NamespaceTable(), new ServerTable(), StackUtils.getDefaultSerializer());

Fixed code: private EncoderContext encoderContext = new EncoderContext(NamespaceTable.getDefaultInstance(), new ServerTable(), StackUtils.getDefaultSerializer());