Skip to content

Commit 292c357

Browse files
authored
Merge pull request #375 from watson-developer-cloud/develop
Merge in hotfix
2 parents 3a553d8 + 6118580 commit 292c357

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Scripts/Services/SpeechToText/v1/SpeechToText.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -510,6 +510,9 @@ public bool StartListening(OnRecognize callback, OnRecognizeSpeaker speakerLabel
510510
if (!CreateListenConnector())
511511
return false;
512512

513+
if (customData == null)
514+
customData = new Dictionary<string, object>();
515+
513516
Dictionary<string, string> customHeaders = new Dictionary<string, string>();
514517
if (customData.ContainsKey(Constants.String.CUSTOM_REQUEST_HEADERS))
515518
{

0 commit comments

Comments
 (0)