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

[Android] Set density only when non-null #5046

Merged
merged 1 commit into from
Nov 4, 2020

Conversation

golddove
Copy link
Member

@golddove golddove commented Nov 4, 2020

Related Issue

Empty images cause renderer to crash.

Fixes #5048

Description

Empty image returns null, so shouldn't attempt to scale in those cases.

Sample Card

v1.2/Tests/Image.DataUri.InvalidChars.json

How Verified

Manual verification with fix. Doesn't crash.

Microsoft Reviewers: Open in CodeFlow

@golddove golddove merged commit 0e71fb4 into main Nov 4, 2020
@golddove golddove deleted the golddove/resource-null-check branch November 4, 2020 22:24
rankush pushed a commit to rankush/AdaptiveCards that referenced this pull request May 8, 2024
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.

[Android][Image Rendering] Non-rendered images create app crashes
2 participants