1 files changed, 2 insertions, 2 deletions
diff --git a/BugMine.Sdk/BugMineIssue.cs b/BugMine.Sdk/BugMineIssue.cs
index 6cf3409..7b01b32 100644
--- a/BugMine.Sdk/BugMineIssue.cs
+++ b/BugMine.Sdk/BugMineIssue.cs
@@ -4,8 +4,8 @@ using LibMatrix.RoomTypes;
namespace BugMine.Web.Classes;
public class BugMineIssue(GenericRoom room, StateEventResponse data) {
- public GenericRoom Room { get; } = room;
- public StateEventResponse Data { get; } = data;
+ public GenericRoom Room => room ?? throw new ArgumentNullException(nameof(room));
+ public StateEventResponse Data => data ?? throw new ArgumentNullException(nameof(data));
// public async IAsyncEnumerable<StateEventResponse> GetRelatedEventsAsync() {
//
// }
|