Skip to content

Commit 9dc3841

Browse files
author
hmiri
committed
Added null check for workspaceId in Assistant V1 Message.
1 parent bd695cd commit 9dc3841

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)