Skip to content

Commit

Permalink
add extra check
Browse files Browse the repository at this point in the history
  • Loading branch information
lilydu committed Jan 2, 2025
1 parent 93a5919 commit 29e00e9
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -348,10 +348,11 @@ private async Task SendActivity(Activity activity)
// Add in Generated by AI
if (this.EnableGeneratedByAILabel == true)
{
List<ClientCitation>? currCitations = CitationUtils.GetUsedCitations(this.Message, this.Citations);

Check warning on line 351 in dotnet/packages/Microsoft.TeamsAI/Microsoft.TeamsAI/Application/StreamingResponse.cs

View workflow job for this annotation

GitHub Actions / Build/Test/Lint (6.0)

Possible null reference argument for parameter 'citations' in 'List<ClientCitation>? CitationUtils.GetUsedCitations(string text, List<ClientCitation> citations)'.

Check warning on line 351 in dotnet/packages/Microsoft.TeamsAI/Microsoft.TeamsAI/Application/StreamingResponse.cs

View workflow job for this annotation

GitHub Actions / Build/Test/Lint (6.0)

Possible null reference argument for parameter 'citations' in 'List<ClientCitation>? CitationUtils.GetUsedCitations(string text, List<ClientCitation> citations)'.

Check warning on line 351 in dotnet/packages/Microsoft.TeamsAI/Microsoft.TeamsAI/Application/StreamingResponse.cs

View workflow job for this annotation

GitHub Actions / Build/Test/Lint (7.0)

Possible null reference argument for parameter 'citations' in 'List<ClientCitation>? CitationUtils.GetUsedCitations(string text, List<ClientCitation> citations)'.

Check warning on line 351 in dotnet/packages/Microsoft.TeamsAI/Microsoft.TeamsAI/Application/StreamingResponse.cs

View workflow job for this annotation

GitHub Actions / Build/Test/Lint (7.0)

Possible null reference argument for parameter 'citations' in 'List<ClientCitation>? CitationUtils.GetUsedCitations(string text, List<ClientCitation> citations)'.
AIEntity entity = new AIEntity();
if (this.Citations != null && this.Citations.Count > 0)
{
entity.Citation = this.Citations;
entity.Citation = currCitations;

Check warning on line 355 in dotnet/packages/Microsoft.TeamsAI/Microsoft.TeamsAI/Application/StreamingResponse.cs

View workflow job for this annotation

GitHub Actions / Build/Test/Lint (6.0)

Possible null reference assignment.

Check warning on line 355 in dotnet/packages/Microsoft.TeamsAI/Microsoft.TeamsAI/Application/StreamingResponse.cs

View workflow job for this annotation

GitHub Actions / Build/Test/Lint (6.0)

Possible null reference assignment.

Check warning on line 355 in dotnet/packages/Microsoft.TeamsAI/Microsoft.TeamsAI/Application/StreamingResponse.cs

View workflow job for this annotation

GitHub Actions / Build/Test/Lint (7.0)

Possible null reference assignment.

Check warning on line 355 in dotnet/packages/Microsoft.TeamsAI/Microsoft.TeamsAI/Application/StreamingResponse.cs

View workflow job for this annotation

GitHub Actions / Build/Test/Lint (7.0)

Possible null reference assignment.
}

entity.UsageInfo = this.SensitivityLabel;
Expand Down

0 comments on commit 29e00e9

Please sign in to comment.