Skip to content

Commit 00f6bd1

Browse files
committed
Add a null check for summarizer language availabilities
1 parent eb4ad6d commit 00f6bd1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

index.bs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -301,6 +301,8 @@ The <dfn attribute for="AI">summarizer</dfn> getter steps are to return [=this=]
301301

302302
1. Let |languageAvailabilities| be the [=summarizer language availabilities=].
303303

304+
1. If |languageAvailabilities| is null, then return null.
305+
304306
1. Let |inputLanguageAvailability| be the result of [=computing summarizer language availability=] given |options|["{{AISummarizerCreateCoreOptions/expectedInputLanguages}}"] and |languageAvailabilities|'s [=language availabilities/input languages=].
305307

306308
1. Let |contextLanguagesAvailability| be the result of [=computing summarizer language availability=] given |options|["{{AISummarizerCreateCoreOptions/expectedContextLanguages}}"] and |languageAvailabilities|'s [=language availabilities/context languages=].

0 commit comments

Comments
 (0)