Skip to content

Commit

Permalink
fix: update DeviceInfo getter to not return null
Browse files Browse the repository at this point in the history
  • Loading branch information
ndorin committed Jun 11, 2024
1 parent dd3fd21 commit 8395a55
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/TesiraDsp.cs
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,11 @@ public bool IsSubscribed {

public DeviceInfo DeviceInfo
{
get { return DevInfo.DeviceInfo; }
get {
if (DevInfo != null) return DevInfo.DeviceInfo;

else return new DeviceInfo();
}
}

/// <summary>
Expand Down

0 comments on commit 8395a55

Please sign in to comment.