Skip to content

Commit

Permalink
Fix #2117 (#2118)
Browse files Browse the repository at this point in the history
  • Loading branch information
kbeaugrand committed Jun 23, 2023
1 parent 622098e commit abccb57
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,8 @@ public async Task<IEnumerable<DevicePropertyValue>> GetProperties(string deviceI

foreach (var item in items)
{
var value = item.IsWritable ? desiredPropertiesAsJson.SelectToken(item.Name)?.Value<string>() :
reportedPropertiesAsJson.SelectToken(item.Name)?.Value<string>();
var value = item.IsWritable ? desiredPropertiesAsJson?.SelectToken(item.Name)?.Value<string>() :
reportedPropertiesAsJson?.SelectToken(item.Name)?.Value<string>();

result.Add(new DevicePropertyValue
{
Expand Down

0 comments on commit abccb57

Please sign in to comment.