Skip to content

Commit 0c641b7

Browse files
authored
Merge pull request #491 from HjoshM/develop
Added null check for workspaceId in Assistant V1 Message
2 parents bd695cd + 9dc3841 commit 0c641b7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Scripts/Services/Assistant/v1/Assistant.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,8 @@ public bool Message(SuccessCallback<object> successCallback, FailCallback failCa
132132
throw new ArgumentNullException("successCallback");
133133
if (failCallback == null)
134134
throw new ArgumentNullException("failCallback");
135+
if (string.IsNullOrEmpty(workspaceId))
136+
throw new ArgumentNullException("workspaceId");
135137

136138
IDictionary<string, string> requestDict = new Dictionary<string, string>();
137139
if (request.Context != null)

0 commit comments

Comments
 (0)