Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Media text: Check if index exists #7993

Merged
merged 2 commits into from
Dec 17, 2020
Merged

Media text: Check if index exists #7993

merged 2 commits into from
Dec 17, 2020

Conversation

giannik
Copy link
Contributor

@giannik giannik commented Dec 14, 2020

else an out of bounds exception will be thrown.

else an out of bounds exception will be thrown.
@Skrypt
Copy link
Contributor

Skrypt commented Dec 14, 2020

Have you tried mediaTexts.ElementAtOrDefault(i) instead?

@agriffard agriffard changed the title check media text array index exists Media text: Check if index exists Dec 15, 2020
@agriffard
Copy link
Member

Please take the suggested change into account.

Co-authored-by: Jasmin Savard <jasmin.savard@gmail.com>
@agriffard agriffard requested a review from Skrypt December 17, 2020 15:05
@agriffard agriffard merged commit c221597 into OrchardCMS:dev Dec 17, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants