mirror of
https://github.com/OPCFoundation/UA-.NETStandard.git
synced 2026-10-27 21:55:54 +08:00
Fix NullReferenceException (#517)
When throw this exception, It will block bad quality reporting.
This commit is contained in:
committed by
Alin Moldovean
parent
3c93ad36c7
commit
4db06b3adc
@@ -220,7 +220,8 @@ namespace Opc.Ua.Com.Client
|
||||
for (int jj = 0; jj < monitoredItems.Length; jj++)
|
||||
{
|
||||
|
||||
if (info.LastValue.Value.GetType().IsArray
|
||||
if (info.LastValue.Value != null
|
||||
&& info.LastValue.Value.GetType().IsArray
|
||||
&& monitoredItems[jj].IndexRange.Count != info.LastValue.Value.GetType().GetArrayRank()
|
||||
&& StatusCode.IsBad(info.LastValue.StatusCode))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user